leonardo123
New Member
- Joined
- Jul 10, 2008
- Messages
- 90
- Reaction score
- 0
well i was trying to create a vip system for my ot creating new functions everything was ok but then i start having this error and i don't know what to do i have tried several different ways but i still can't make it work
does anybody knows how i can fix my problem? it would be very appreciated and i know it would be very useful not only for me but for everyone esle that could be interested in something like this...
Code:
function isVip(cid)
local acnt = db.getResult("SELECT `account_id` FROM `players` WHERE `name` = '" .. getPlayerName .. "' LIMIT 1;")
local PlayerVipDays = db.getResult("SELECT `vipdays` FROM `accounts` WHERE `id` = 'acnt' LIMIT 1;")
return (isPlayer(cid) and (PlayerVipDays > 0))
end