Help im confused
#1

ok i have this

pawn Код:
ShowPlayerDialog(playerid, STARTERGIFT, DIALOG_STYLE_LIST, "Starter Offer", " Phone\nPrivate Radio\nPhone Book\n10 Spray Cans", "Yes", "No");
and i want it to do this but its not working

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

Show us your define of "STARTERGIFT".
Reply
#3

urgh thats all set up fine the dialog shows, just when i click yes nothing happens
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)