help cmd id
#8

That won't be so much different. Here is my try...
pawn Code:
CMD:checkphone(playerid, params[])
{
    new pn,string[128],name[MAX_PLAYER_NAME];
    if(sscanf(params, "u",pn)) return SendClientMessage(playerid, -1,"USE /checkphone [Phone Number]");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(YourPhoneNumVariable[i] == pn)
        {
            GetPlayerName(i, name, sizeof(name));
            format(string,sizeof(string),"Number: | %d | User: | %s |",YourPhoneNumVariable[i], name);
            SendClientMessage(playerid,-1,string);
        }
    }    
    return 1;
}
Again not sure if it will work.

EDIT: It will not work if you are saving phone numbers as string.
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)