• Help me plis. [DARKRP]
    9 replies, posted
[ERROR] gamemodes/darkrp/entities/weapons/moneychecker/shared.lua:89: attempt to index global 'v' (a nil value)   1. unknown - gamemodes/darkrp/entities/weapons/moneychecker/shared.lua:89 if ent:IsPlayer() then                   print( Format( "%s имеет %i денег!", v:Nick(), v.DarkRPVars.money ) ) end
use ent:Nick() not v:Nick()
Okey, but again. [ERROR] gamemodes/darkrp/entities/weapons/moneychecker/shared.lua:89: attempt to index global 'v' (a nil value)
Post the full file (Preferable in a pastebin or some shit)
https://pastebin.com/hs69wdHG
You could post in your previous thread instead of creating a new one. v.DarkRPVars.money is not defined, use function that officially comes with DarkRP: getDarkRPVar("money")
[ERROR] gamemodes/darkrp/entities/weapons/moneychecker/shared.lua:89: attempt to call global 'getDarkRPVar' (a nil value)
It's a method function, not a global. use it with ent:
Блин, спасибо тебе огромное, знаю что ты русский, прости что агрился на тебя!(
No other languages allowed here, but I understand you. Official DarkRP Wiki Official DarkRP Wiki on Russian GMod Wiki Code Blue and his GLua Tutorials (also he has Lua tutorials)
Sorry, you need to Log In to post a reply to this thread.