Error while compile
#1

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
Reply
#2

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

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

+REP to both thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)