12.03.2013, 16:56
as i can see on your code. im not sure if you can do that kind of way. but as i always do is like the same as normal variable.
Instead of
Try something like this
Instead of
pawn Код:
if(!PlayerInfo[playerid][pLoggedIn])
pawn Код:
PlayerInfo[playerid][pLoggedIn] =1; //put this on your login dialog
PlayerInfo[playerid][pLoggedIn] =0; //put this on OnPlayerDisconnect
//to check if player is registed
if(PlayerInfo[playerid][pLoggedIn] == 1)
return SendClientMessage(playerid, -1,"This Player Is Registered");
//to check if player is not registered
if(PlayerInfo[playerid][pLoggedIn] == 1)
return SendClientMessage(playerid, -1,"This Player Is Not Registered");