Forum

> > CS2D > Scripts > cs2d rp work?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch cs2d rp work?

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt cs2d rp work?

Fuly
User Off Offline

Zitieren
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 >

alt Re: cs2d rp work?

Starkkz
Moderator Off Offline

Zitieren
haveball is not defined anywhere, put this at the begining of your code.
1
haveball = {}

alt Re: cs2d rp work?

Fuly
User Off Offline

Zitieren
@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 >

alt Re: cs2d rp work?

MikuAuahDark
User Off Offline

Zitieren
@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
havebal={}

alt Re: cs2d rp work?

GeoB99
Moderator Off Offline

Zitieren
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 = {}.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht