Dialog won't show upp
#1

pawn Код:
if(response)
            {
                if(listitem == 0)
                {
                    new ivPrice = 30000, ivModel = 602, ivModelz[24] = "602",sCar = GetVehicleModelIDFromName(ivModelz);
                    if(GetPlayerCash(playerid) < ivPrice)
                    {
                        SendClientMessage(playerid,COLOR_RED,"WORKS UNTIL HERE");
                        new msg[128];
                                      // here stops working
                        format(msg, sizeof(msg), "car: $s costs: $d you need: $d", VehicleNames[sCar - 400], ivPrice, ivPrice - GetPlayerCash(playerid));
                        DialogBox(playerid, LOOOL+2, ""#CCADET"Not Enough Money!", msg , "Exit","");
                         // heree stops working
                        return 1;

                    }
                    if(GetPlayerScore(playerid) < 200) return DialogBox(playerid, LOOOL+1, ""#CCADET"Not enough score", ""CYELLOW"You need 200 score)", "Exit","");
                    // bla bla bla
                    // bla bla bla
                    // bla bla bla
                    return 1;
                }
            }
The dialog when it's not enough money won't show upp. It work's fine with score!
Reply
#2

"DialogBox()" looks not familiar to me.
Maybe ShowPlayerDialog?
Reply
#3

pawn Код:
#define DialogBox(%0,%1,%2,%3,%4,%5)                                            ShowPlayerDialog( %0, %1, DIALOG_STYLE_MSGBOX, %2, %3, %4, %5 )
now then?
Reply
#4

DialogBox(playerid, LOOOL+2, ""#CCADET"Not Enough Money!", msg , "Exit","");

No idea what #CCADET means, but you definitely have to escape the quotes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)