There is no response from my dialog.
#1

I've got no errors, but when I select a weapon on the weapon dialog, nothing happens.
Code: http://pastebin.com/Mgw25R3m
Reply
#2

Quote:
Originally Posted by M4z
Посмотреть сообщение
I've got no errors, but when I select a weapon on the weapon dialog, nothing happens.
Code: http://pastebin.com/Mgw25R3m
At the end of every case put "return 1;" and at the end of OnDialogResponse put "return 0;". That's the solution.
Reply
#3

also check the filterscripts you are using..
if there is another dialog with the same ID in an fs, this will cause problems, too..
Reply
#4

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.
Reply
#5

pawn Код:
if(GetPlayerMoney(playerid) < PriceOfItem/Weapon here) return SendClientMessage(playerid, -1, "You dont have enough money");
Add this before you give him the weapon
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)