• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

getNpcId (a nil value) Massive error on 9.46

vakacjus

Lua & C++ Study.
Joined
Oct 23, 2008
Messages
255
Solutions
1
Reaction score
26
I have got an error called
PHP:
attempt to call global "getNpcId" (a nil value)

Is there any chance to fix it?. I have try with other command
PHP:
"getPlayerMaxMana(cid)"
and I just changed it to
PHP:
"getPlayerMaxMana in 0.2"
and bug gone"?".
I need to change all npc script's and change
PHP:
getNpcId()
to
PHP:
getNpcId in 0.2
?, its pointless and I'm sure that one for every script wont work correct ;s

soz for my inglish :D, rep++ for help ofc.


Example

PHP:
if(getCreatureStorage(getNpcId(), 1) < os.time()) then

///
PHP:
attempt to call global "getNpcId" (a nil value)
 
Last edited:

Similar threads

Back
Top