I need help to player receive 10% of ur exp points, look in red(don't working):
PLAYER_EXP/90
getPlayerExp(cid), exist? or is other function...
Code:
---by BomBa---
--------------
function onLogin(cid)
if getPlayerStorageValue(cid, DONATE_STOR) == -1 then
addEvent(autoExp, 900 * 1000)
end
reuturn TRUE
end
function autoExp()
local msg =
{
notDonator = "Be a donor too!"
}
if getPlayerStorageValue(cid, DONATE_STOR) == -1 then
doPlayerAddExp(cid, PLAYER_EXP/90)
doSendAnimatedText(getPlayerPosition(cid), PLAYER_EXP/90, TEXTCOLOR_WHITE)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, msg.notDonator)
end
return TRUE
end
PLAYER_EXP/90
getPlayerExp(cid), exist? or is other function...