SA-MP Forums Archive
Error while compile - 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: Error while compile (/showthread.php?tid=658757)



Error while compile - ZigGamerx - 11.09.2018

Error

Код:
G:\Pawno\gamemodes\codnw.pwn(435) : error 029: invalid expression, assumed zero
G:\Pawno\gamemodes\codnw.pwn(435) : warning 215: expression has no effect
G:\Pawno\gamemodes\codnw.pwn(435) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2016, ITB CompuPhase


2 Errors.
Code

https://imgur.com/a/HW2l8D9


Re: Error while compile - UFF - 11.09.2018

Код:
if(GetPlayerScore(playerid) >= RANKS)
{
  //=== codes
}
else return SendClientMessage(playerid, COLOR_RED, "[ERROR] You must be atleast rank 8 to use this command");
Here


Re: Error while compile - Calisthenics - 11.09.2018

When posting screenshot of the code, we cannot highlight you the mistake.

Move the "else return ..." line after the bracket and not inside the if statement.


Re: Error while compile - ZigGamerx - 11.09.2018

+REP to both thanks.