can someone help me in this plx 
it suppost in this scrip players with group id 2 can walk over all players :S
and players with group id 1 just can walk over player with group id 2 u.u
i made this but isnt working u.u
it suppost in this scrip players with group id 2 can walk over all players :S
and players with group id 1 just can walk over player with group id 2 u.u
i made this but isnt working u.u
PHP:
function getPlayerGroupId(uid)
local result = db.getResult("SELECT `group_id` FROM `players` WHERE `name` = '" .. getPlayerName(uid) .. "' LIMIT 2;")
if(result:getID() ~= 2) then
local mode = result:getDataInt("group_id")
return mode
else
return FALSE
end
result:free()
end
function onLogin(cid)
if(getPlayerGroupId(cid) == 1) then
setPlayerGroupId(cid, 2)
end
return TRUE
end