- 22
- 5
Всем привет, решил впервые создать свой скрипт на LUA, начал смотреть видео о том как программировать на этом языке, написал первые три строчки кода:
script_name(FarmerBotBy0pjGismo0v1)
script_author(pjGismo)
script_description(My first script, enjoy!)
и в CMD SampFuncs мне пишет:
[19:35:26] {C0C0C0}[ML] {FF7070}(error) {E0E0E0}farmerbot0bypjgismo0v1.lua: {C0C0C0}...TA SAMP for low pc\moonloader\farmerbot0bypjgismo0v1.lua:3: ')' expected near 'first'
[19:35:26] {C0C0C0}[ML] {FF7070}(error) {E0E0E0}farmerbot0bypjgismo0v1.lua: {C0C0C0}Script died due to an error. (0DB29904)
moonloader log:
[19:56:20.558047] (debug) FP Control: 0009001F
[19:56:20.558047] (debug) Game: GTA SA 1.0.0.0 US
[19:56:20.558047] (system) Installing pre-game hooks...
[19:56:20.562047] (system) Hooks installed.
[19:56:21.263406] (debug) Initializing opcode handler table
[19:56:21.263406] (debug) package.path = D:\GTA SAMP for low pc\moonloader\lib\?.lua;D:\GTA SAMP for low pc\moonloader\lib\?\init.lua;D:\GTA SAMP for low pc\moonloader\?.lua;D:\GTA SAMP for low pc\moonloader\?\init.lua;.\?.lua;D:\GTA SAMP for low pc\moonloader\lib\?.luac;D:\GTA SAMP for low pc\moonloader\lib\?\init.luac;D:\GTA SAMP for low pc\moonloader\?.luac;D:\GTA SAMP for low pc\moonloader\?\init.luac;.\?.luac
[19:56:21.263406] (debug) package.cpath = D:\GTA SAMP for low pc\moonloader\lib\?.dll;
[19:56:21.270387] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\AutoReboot.lua'...
[19:56:21.271390] (debug) New script: 0DA85C7C
[19:56:21.291331] (system) ML-AutoReboot: Loaded successfully.
[19:56:21.291331] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\check-moonloader-updates.lua'...
[19:56:21.291331] (debug) New script: 0DB165FC
[19:56:21.303816] (system) Check MoonLoader Updates: Loaded successfully.
[19:56:21.303816] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\farmerbot0bypjgismo0v1.lua'...
[19:56:21.303816] (debug) New script: 0DB16DA4
[19:56:21.306805] (system) farmerbot0bypjgismo0v1.lua: Loaded successfully.
[19:56:21.306805] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\reload_all.lua'...
[19:56:21.306805] (debug) New script: 0DB16474
[19:56:21.309799] (system) ML-ReloadAll: Loaded successfully.
[19:56:21.309799] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\SF Integration.lua'...
[19:56:21.309799] (debug) New script: 0DB170B4
[19:56:21.321766] (system) SF Integration: Loaded successfully.
[19:56:21.324760] (system) farmerbot0bypjgismo0v1.lua: Script terminated. (0DB16DA4)
[19:56:32.138970] (system) Installing post-load hooks...
[19:56:32.138970] (system) Hooks installed.
[19:56:48.978266] (system) Unloading...
[19:56:48.978266] (system) ML-AutoReboot: Script terminated. (0DA85C7C)
[19:56:48.979249] (system) Check MoonLoader Updates: Script terminated. (0DB165FC)
[19:56:48.979249] (system) ML-ReloadAll: Script terminated. (0DB16474)
[19:56:48.979249] (system) SF Integration: Script terminated. (0DB170B4)
[19:56:48.994635] (system) Session terminated.
что делать?
script_name(FarmerBotBy0pjGismo0v1)
script_author(pjGismo)
script_description(My first script, enjoy!)
и в CMD SampFuncs мне пишет:
[19:35:26] {C0C0C0}[ML] {FF7070}(error) {E0E0E0}farmerbot0bypjgismo0v1.lua: {C0C0C0}...TA SAMP for low pc\moonloader\farmerbot0bypjgismo0v1.lua:3: ')' expected near 'first'
[19:35:26] {C0C0C0}[ML] {FF7070}(error) {E0E0E0}farmerbot0bypjgismo0v1.lua: {C0C0C0}Script died due to an error. (0DB29904)
moonloader log:
[19:56:20.558047] (debug) FP Control: 0009001F
[19:56:20.558047] (debug) Game: GTA SA 1.0.0.0 US
[19:56:20.558047] (system) Installing pre-game hooks...
[19:56:20.562047] (system) Hooks installed.
[19:56:21.263406] (debug) Initializing opcode handler table
[19:56:21.263406] (debug) package.path = D:\GTA SAMP for low pc\moonloader\lib\?.lua;D:\GTA SAMP for low pc\moonloader\lib\?\init.lua;D:\GTA SAMP for low pc\moonloader\?.lua;D:\GTA SAMP for low pc\moonloader\?\init.lua;.\?.lua;D:\GTA SAMP for low pc\moonloader\lib\?.luac;D:\GTA SAMP for low pc\moonloader\lib\?\init.luac;D:\GTA SAMP for low pc\moonloader\?.luac;D:\GTA SAMP for low pc\moonloader\?\init.luac;.\?.luac
[19:56:21.263406] (debug) package.cpath = D:\GTA SAMP for low pc\moonloader\lib\?.dll;
[19:56:21.270387] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\AutoReboot.lua'...
[19:56:21.271390] (debug) New script: 0DA85C7C
[19:56:21.291331] (system) ML-AutoReboot: Loaded successfully.
[19:56:21.291331] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\check-moonloader-updates.lua'...
[19:56:21.291331] (debug) New script: 0DB165FC
[19:56:21.303816] (system) Check MoonLoader Updates: Loaded successfully.
[19:56:21.303816] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\farmerbot0bypjgismo0v1.lua'...
[19:56:21.303816] (debug) New script: 0DB16DA4
[19:56:21.306805] (system) farmerbot0bypjgismo0v1.lua: Loaded successfully.
[19:56:21.306805] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\reload_all.lua'...
[19:56:21.306805] (debug) New script: 0DB16474
[19:56:21.309799] (system) ML-ReloadAll: Loaded successfully.
[19:56:21.309799] (system) Loading script 'D:\GTA SAMP for low pc\moonloader\SF Integration.lua'...
[19:56:21.309799] (debug) New script: 0DB170B4
[19:56:21.321766] (system) SF Integration: Loaded successfully.
[19:56:21.324760] (system) farmerbot0bypjgismo0v1.lua: Script terminated. (0DB16DA4)
[19:56:32.138970] (system) Installing post-load hooks...
[19:56:32.138970] (system) Hooks installed.
[19:56:48.978266] (system) Unloading...
[19:56:48.978266] (system) ML-AutoReboot: Script terminated. (0DA85C7C)
[19:56:48.979249] (system) Check MoonLoader Updates: Script terminated. (0DB165FC)
[19:56:48.979249] (system) ML-ReloadAll: Script terminated. (0DB16474)
[19:56:48.979249] (system) SF Integration: Script terminated. (0DB170B4)
[19:56:48.994635] (system) Session terminated.
что делать?
Последнее редактирование: