Dialogs - 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: Dialogs (
/showthread.php?tid=350188)
Dialogs -
DragonYancy - 11.06.2012
Код:
if(response == 0) return {SendClientMessage(playerid,COLOR_YELLOW,"You didn't choose anything.");}
If I have this code, compiler doesn't work. If I don't have this code compiler works. What's the problem?
Re: Dialogs -
JaTochNietDan - 11.06.2012
Take out those curly brackets, they are not necessary there.
Curly brackets are used to define a section of code to be executed after a statement, the circumstances in which you have put them is not a valid syntax and therefore is crashing the compiler.
Re: Dialogs -
Passout - 11.06.2012
Try
Код:
if(response == 0) return SendClientMessage(playerid,COLOR_YELLOW,"You didn't choose anything.");
Re: Dialogs -
DragonYancy - 11.06.2012
Thank you both of you. And I'll ask a question. Some servers have unlimited ammos with guns. They are making max ammos, or they are making some other things?