help cmd id
#3

Using ZCMD and SSCANF

pawn Code:
CMD:checkphone(playerid, params[])
{
    new id,string[128],name[MAX_PLAYER_NAME];
    if(sscanf(params, "u",id)) return SendClientMessage(playerid, -1,"USE /checkphone [ID/Player name]");
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"Wrong ID!");
    GetPlayerName(id, name, sizeof(name));
    format(string,sizeof(string),"Number: | %d | User: | %s |",YourPhoneNumVariable, name);
    SendClientMessage(playerid,-1,string);
    return 1;
}
Reply


Messages In This Thread
help cmd id - by tooMuch - 08.02.2015, 19:37
Re: help cmd id - by Knappen - 08.02.2015, 20:47
Re: help cmd id - by Sime30 - 08.02.2015, 20:48
Re: help cmd id - by tooMuch - 09.02.2015, 10:37
Re: help cmd id - by De4dpOol - 09.02.2015, 11:12
AW: help cmd id - by Nero_3D - 09.02.2015, 11:12
Re: help cmd id - by tooMuch - 09.02.2015, 11:22
Re: help cmd id - by De4dpOol - 09.02.2015, 11:30
Re: help cmd id - by tooMuch - 09.02.2015, 11:49
Re: help cmd id - by De4dpOol - 09.02.2015, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)