View Full Version : Dialogs

11/06/2012, 06:08 PM
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?

11/06/2012, 06:12 PM
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.

11/06/2012, 06:13 PM
if(response == 0) return SendClientMessage(playerid,COLOR_YELLOW,"You didn't choose anything.");

11/06/2012, 06:20 PM
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?