08.02.2015, 20:48
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;
}