/sms help
#2

What you could do, is save as 3 variables, if 1 is always same then just save the last 2..

like

pawn Код:
PlayerInfo[playerid][pNumber1]
pawn Код:
PlayerInfo[playerid][pNumber2]
then if you were to do a command like this, have it show the - in between..

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;
}
Reply


Messages In This Thread
/sms help - by DX7 - 07.06.2010, 23:06
Re: /sms help - by Antonio [G-RP] - 07.06.2010, 23:18
Re: /sms help - by DX7 - 07.06.2010, 23:21
Re: /sms help - by Antonio [G-RP] - 08.06.2010, 01:32

Forum Jump:


Users browsing this thread: 1 Guest(s)