Dialogs
#1

Код:
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?
Reply
#2

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

Try
Код:
if(response == 0) return SendClientMessage(playerid,COLOR_YELLOW,"You didn't choose anything.");
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)