Random Dialog Appears. - 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)
+--- Thread: Random Dialog Appears. (
/showthread.php?tid=520314)
Random Dialog Appears. -
ghostomgg - 18.06.2014
I have edited CoS without dialogs, i added dialogs to it, first i named the dialogs, defined with id, it was the same problem, Used:
#define CARDIALOGG 13371
It didn't work. Then deleted the defines with CARDIALOGG and renamed it to 13371 all, it was the same problem.
Quote:
if(dialogid == 13371)
{
if(response)
{
if(listitem == 0) // Park it
{
LockMyVehFnc(playerid);
}
if(listitem == 1) // Lock/Unlock
{
ParkMyVehFnc(playerid);
}
if(listitem == 2) // Park Vehicle
{
LocateMyVehFnc(playerid,0);
}
if(listitem == 3) // Locate it
{
SellMyVehFnc(playerid);
}
if(listitem == 4) // Sell vehicle $500.000
{
ShowPlayerDialog(playerid, 13377, DIALOG_STYLE_INPUT, "Vehicle Sale", "Enter players ID", "Enter", "Exit");
}
}
return 1;
}
|
Can someone help?.
Re: Random Dialog Appears. -
rockhopper - 18.06.2014
I prefer you to name each dialog Whereever You use it !!! Any GM or FS For example On top of script
Код:
#define DIALOG_TESTONE
//And then rest thing like show player dialog
ShowPlayerDialog(playerid, DIALOG_TESTONE ... );
Like This