Get Player id from name
#2

Use sscanf its lot more easier and has a specifier already for that
Example
pawn Код:
new id;
if(sscanf(nev, "u", id))
{
     //player is NOT connected
}
else
{
     //now 'id' contains id of the player who's name is in 'nev'
}
PS. You need sscanf plugin and include to use this function
Reply


Messages In This Thread
Get Player id from name - by n00el - 17.01.2015, 11:06
Re: Get Player id from name - by BroZeus - 17.01.2015, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)