03.12.2012, 08:59
ok i have this
and i want it to do this but its not working
pawn Код:
ShowPlayerDialog(playerid, STARTERGIFT, DIALOG_STYLE_LIST, "Starter Offer", " Phone\nPrivate Radio\nPhone Book\n10 Spray Cans", "Yes", "No");
pawn Код:
if(dialogid == STARTERGIFT)
{
if(response)
{
new randphone = 1000 + random(9999);//minimum 1000 max 9999
ReplacePH(PlayerInfo[playerid][pPnumber], randphone);
PlayerInfo[playerid][pPnumber] = randphone;
format(string, sizeof(string), "your new phone number is %d.", randphone);
PlayerInfo[playerid][pPhoneBook] = 1;
PlayerInfo[playerid][pSpraycan] = 10;
SendClientMessageEx(playerid, COLOR_TWAZURE, "HINT: Type /pr to talk over your portable radio.");
SendClientMessageEx(playerid, COLOR_TWAZURE, "HINT: Type /setfreq to set the frequency of your portable radio.");
PlayerInfo[playerid][pRadio] = 1;
}
}