07.06.2015, 11:51
I made a new phonenumber thingy.. and I wanted the first 3 numbers to be 003 and then the player to decide 7 numbers .. and then if phone number is taken to appear "phone number taken" .. so we writes 7 numbers.. and first 3 official numbers for all..
PHP код:
if(dialogid == DIALOG_PNUM)
{
if(response)
{
new lengh = strval(inputtext);
if(lengh > 6 && lengh < 8)
{
format(string,256,"Ok, Your Number is [%d].",lengh);
SendClientMessage(playerid,COLOR_ORANGE,string);
PlayerInfo[playerid][pPnumber] = lengh;
ShowPlayerDialog(playerid,DIALOG_PNUM,DIALOG_STYLE_INPUT,"PhoneNumber","Write your phonenumber!","Ok","");
}
else return ShowPlayerDialog(playerid,DIALOG_PNUM,DIALOG_STYLE_INPUT,"PhoneNumber","Write your phonenumber!","Ok","");
}
}