error 036: empty statement
#2

PHP код:
if(IsPlayerInRangeOfPoint(playerid12.02782.3027,-2019.0826,13.5547)); 
if statments should not end with semicolons ( ; ).

If you want to check if the statement is false use '!' at the start of it (which also means NOT in a similar way != means NOT EQUAL).

'!' Will check if the function returns false (0) and will pass if so.

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 12.0, 2782.3027,-2019.0826,13.5547))
       return SendClientMessage(playerid,-1,"ERROR: You are not in the basketball field!");
Also that code should be above every other part of the code, otherwise the code will be executed first then it'll be checked if the player is not in the range needed.
Reply


Messages In This Thread
error 036: empty statement - by Omar55555 - 08.02.2014, 18:21
Re: error 036: empty statement - by CuervO - 08.02.2014, 18:40
Re: error 036: empty statement - by Omar55555 - 09.02.2014, 22:07
Re: error 036: empty statement - by Don_Cage - 09.02.2014, 22:28
Re: error 036: empty statement - by Omar55555 - 10.02.2014, 11:15
Re: error 036: empty statement - by Vanter - 10.02.2014, 11:25
Re: error 036: empty statement - by Don_Cage - 10.02.2014, 11:28
Re: error 036: empty statement - by Omar55555 - 10.02.2014, 11:33

Forum Jump:


Users browsing this thread: 3 Guest(s)