English cs2d rp work?

8 replies
Goto Page
To the start Previous 1 Next To the start
28.10.15 10:01:15 pm
Up
Fuly
User
Offline Off
LUA ERROR: sys/lua/rp_scripts/module/hooks.lua:337: attempt to index global 'havebal' (a
nil value)
-> sys/lua/rp_scripts/module/hooks.lua:337: in function <sys/lua/rp_scripts/module
hooks.lua:336>
-> in Lua hook 'drop', params: 1, 56, 74, 0, 0, 0, 48, 26

Spoiler >
28.10.15 11:45:36 pm
Up
Starkkz
Moderator
Offline Off
haveball is not defined anywhere, put this at the begining of your code.
Code:
1
haveball = {}
lol
29.10.15 03:25:17 pm
Up
Fuly
User
Offline Off
@user Starkkz: work

LUA ERROR: sys/lua/rp_scripts/module/hooks.lua:337: 'then' expected near '='
-> [C]: in function 'dofile'
-> sys/lua/rp_scripts/RolePlay.lua:9: in main chunk
-> [C]: in function 'dofile'
-> sys/lua/main.lua:12: in main chunk

Spoiler >
29.10.15 03:27:07 pm
Up
Talented Doge
User
Offline Off
Code:
1
if haveball = {}
Talented Doge
29.10.15 03:35:06 pm
Up
MikuAuahDark
User
Offline Off
@user Starkkz: It should be havebal. It's not typo as far as I know in this roleplay script.

Anyway, put this somewhere in main.lua
Code:
havebal={}
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
29.10.15 03:54:35 pm
Up
Mami Tomoe
User
Offline Off
@user MikuAuahDark: Its roleplay.lua
29.10.15 04:14:14 pm
Up
Fuly
User
Offline Off
havebal={}

error: 'then'
29.10.15 04:24:38 pm
Up
Fraizeraust
Moderator
Offline Off
Because there is a "if" statement in that line, that's why it gives you this error, otherwise it should not. You have to remove it as it's not necessary a "if" near havebal = {}.
29.10.15 04:44:12 pm
Up
Fuly
User
Offline Off
@user Fraizeraust: thx
To the start Previous 1 Next To the start