IsPlayerConnected question
#5

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;
}
}
Reply


Messages In This Thread
IsPlayerConnected question - by maximthepain - 21.03.2015, 01:16
Re: IsPlayerConnected question - by Jefff - 21.03.2015, 02:02
AW: IsPlayerConnected question - by Nero_3D - 21.03.2015, 02:28
Re: IsPlayerConnected question - by maximthepain - 21.03.2015, 10:48
Re: IsPlayerConnected question - by Pottus - 21.03.2015, 11:07

Forum Jump:


Users browsing this thread: 2 Guest(s)