Dialog won't show upp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog won't show upp (
/showthread.php?tid=228046)
Dialog won't show upp -
ajwar - 18.02.2011
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!
AW: Dialog won't show upp -
!Phoenix! - 18.02.2011
"DialogBox()" looks not familiar to me.
Maybe
ShowPlayerDialog?
Re: Dialog won't show upp -
ajwar - 18.02.2011
pawn Код:
#define DialogBox(%0,%1,%2,%3,%4,%5) ShowPlayerDialog( %0, %1, DIALOG_STYLE_MSGBOX, %2, %3, %4, %5 )
now then?
AW: Dialog won't show upp -
!Phoenix! - 18.02.2011
DialogBox(playerid, LOOOL+2, "
"#CCADET"Not Enough Money!", msg , "Exit","");
No idea what #CCADET means, but you definitely have to escape the quotes.