SSCANF
#1

How do I find the names of the players without characters [ and ]?

The player has when entering names: Spenker
After login: [LOK]Spenker
[LOK] = Clan Tag.

/id Spenker => restul: "The player not connected.".
Код HTML:
CMD:id(playerid, params[])
{
    new playerto, test[54];
    if(sscanf(params, "u", playerto)) return SendSyntaxMessage(playerid, "/id [playerid or playername]");
    if(!IsPlayerConnected(playerto)) return SendClientMessage(playerid, COLOR_WHITE1,"The player not connected.");
    format(test, sizeof(test), "Player: %s", GetPName(playerto)), SendClientMessage(playerid, -1, test);
    return 1;
}
Reply


Messages In This Thread
SSCANF - by Spenker - 04.08.2016, 17:22
Re: SSCANF - by diego200052 - 04.08.2016, 17:44
Re: SSCANF - by Stinged - 04.08.2016, 17:54
Re: SSCANF - by Konstantinos - 04.08.2016, 18:08

Forum Jump:


Users browsing this thread: 3 Guest(s)