Well I made this script for when the player has vip day> one vocation he turn the vip, and when you have your days vips <0, he returned to his vocation.
My Script VocationVIp.lua
PHP:
My Error:
[Error - Lua Interface::loadfile] data/creturescripts/scripts/VocationVip.lua:3: unexpected symbol near '>'
My Script VocationVIp.lua
PHP:
function onLogin(cid)
if getPlayerVipDays(cid,>1)= TRUE then
if(isInArray({1, 2, 3, 4}, getPlayerVocation(cid))) then
doPlayerAddVocation(cid,getPlayerVocation(cid)+4)
end
if getPlayerVipDays(cid,<1)= then
if(isInArray({9, 10, 11, 12}, getPlayerVocation(cid))) then
doPlayerAddVocation(cid,getPlayerVocation(cid)+4)
end
end
return true
end