21.03.2015, 11:07
lol dude using sscanf() is very basic.
pawn Код:
IsPlayerOnline(const name[])
{
new pid;
if(!sscanf(nick, "u", pid))
{
new checkname[MAX_PLAYER_NAME+1];
GetPlayerName(pid, checkname, MAX_PLAYER_NAME+1);
if(!strcmp(nick, checkname)) return pid;
}
return INVALID_PLAYER_ID;
}
}