There is no response from my dialog. - 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: There is no response from my dialog. (
/showthread.php?tid=265819)
There is no response from my dialog. -
M4z - 02.07.2011
I've got no errors, but when I select a weapon on the weapon dialog, nothing happens.
Code:
http://pastebin.com/Mgw25R3m
Re: There is no response from my dialog. -
Sasino97 - 02.07.2011
Quote:
Originally Posted by M4z
|
At the end of every case put "return 1;" and at the end of OnDialogResponse put "return 0;". That's the solution.
Re: There is no response from my dialog. -
Sascha - 02.07.2011
also check the filterscripts you are using..
if there is another dialog with the same ID in an fs, this will cause problems, too..
Re: There is no response from my dialog. -
M4z - 02.07.2011
Quote:
Originally Posted by [GF]Sasino97
At the end of every case put "return 1;" and at the end of OnDialogResponse put "return 0;". That's the solution.
|
Thanks that fixed it, but now I have another problem, when I buy somthing from the dialog, it lets me buy it even if I don't have cash, then my cash goes into the negatives.
Re: There is no response from my dialog. -
Wesley221 - 02.07.2011
pawn Код:
if(GetPlayerMoney(playerid) < PriceOfItem/Weapon here) return SendClientMessage(playerid, -1, "You dont have enough money");
Add this before you give him the weapon
Re: There is no response from my dialog. -
M4z - 02.07.2011
Quote:
Originally Posted by Wesley221
pawn Код:
if(GetPlayerMoney(playerid) < PriceOfItem/Weapon here) return SendClientMessage(playerid, -1, "You dont have enough money");
Add this before you give him the weapon
|
Thanks for the advice, but its already fixed now.