Ive been getting this error when a player with access (GM only tested) steps on my tile that activates this script:
If I remove the "getPlayerLevel(cid) < 30000" then theres no error. How do I get the console to stop spamming this? (error attached)
Ive tried adding in "if getPlayerAccess(cid) == 0" but of course the error is coming from the "checks" run on the GMs stats or something..
I see the error furthermore from other scripts such as changegold.lua (when user changes CC to Plat)
Thanks in advance,
Engeltj
Code:
function onStepIn(cid, item, frompos, item2, topos)
if item.actionid == 2004 and getPlayerLevel(cid) < 30000 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is recommended you reach at least 30k before moving on!")
return true
end
end
If I remove the "getPlayerLevel(cid) < 30000" then theres no error. How do I get the console to stop spamming this? (error attached)
Ive tried adding in "if getPlayerAccess(cid) == 0" but of course the error is coming from the "checks" run on the GMs stats or something..
I see the error furthermore from other scripts such as changegold.lua (when user changes CC to Plat)
Thanks in advance,
Engeltj
Attachments
-
error.jpg8.7 KB · Views: 20 · VirusTotal