What Is wrong In This Code
#1

Код:
public OnPlayerRequestClass(playerid, classid)
{
if gTeam[playerid] == TEAM_COP);
{
GameTextForPlayer(playerid, "Police", 5000, 2);
}
Want To Show A Text Of Police On Skin Selection If they are cop

error
Код:
C:\Users\Anurag\Desktop\Most Wanted Cops and Robbers v1.1\gamemodes\MWCNR.pwn(3485) : error 001: expected token: "*then", but found ")"
C:\Users\Anurag\Desktop\Most Wanted Cops and Robbers v1.1\gamemodes\MWCNR.pwn(3485) : error 029: invalid expression, assumed zero
Error Line
Код:
if gTeam[playerid] == TEAM_COP);
Reply
#2

PHP код:
if(gTeam[playerid] == TEAM_COP); 
Reply
#3

Getting Error On The Same Like
Код:
error 036: empty statement
Reply
#4

Fixed It By Removing ";" From "if(gTeam[playerid] == TEAM_COP);"
Reply
#5

If statements will never use ';' at the end.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)