07.06.2010, 23:18
What you could do, is save as 3 variables, if 1 is always same then just save the last 2..
like
then if you were to do a command like this, have it show the - in between..
like
pawn Код:
PlayerInfo[playerid][pNumber1]
pawn Код:
PlayerInfo[playerid][pNumber2]
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/checknumber", true) == 0) {
new string[256];
format(string, sizeof(string), "Your phone number is 1-%d-%d", PlayerInfo[playerid][pNumber1], PlayerInfo[playerid][pNumber2]);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}