How can i fix this errors
#1

sorry wrong place..
Reply
#2

1. Ask in the scripting discussion next time.
2.

pawn Код:
if(gTeam[playerid] == TEAM_BLUE)
{
  SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop");
  return 1;
}
Reply
#3

Quote:
Originally Posted by еddy
1. Ask in the scripting discussion next time.
2.

pawn Код:
if (gTeam[playerid] == TEAM_BLUE)
{
SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop")
return 1;
}
ty
Reply
#4

Quote:
Originally Posted by Battleman
How can i fix this errors:

Errors:
Quote:

-error 001: expected token: ")", but found "return"
-warning 215: expression has no effect
-error 029: invalid expression, assumed zero

2 Errors.

Code:
Quote:

if (gTeam[playerid] == TEAM_BLUE) (SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop") return 1;

Код:
if(gTeam[playerid != /*check if the player is NOT at the 'blue team' */ TEAM_BLUE { SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop"); }
Код:
or
Код:
if(gTeam[playerid] == TEAM_BLUE)
{
  //do something here
} else {
SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop"); 
}
eddy
Quote:

Originally Posted by еddy

1. Ask in the scripting discussion next time.
2.

pawn Код:
if(gTeam[playerid] == TEAM_BLUE){  SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop")return 1;}

wtf? that is wrong. its: if player is a cop > send him "you are not a cop"..
Reply
#5

Quote:
Originally Posted by Battleman
Quote:
Originally Posted by еddy
1. Ask in the scripting discussion next time.
2.

pawn Код:
if (gTeam[playerid] == TEAM_BLUE)
{
SendClientMessage(playerid, COLOR_DBLUE, "You are not a cop")
return 1;
}
ty
Look at my post again, I edited it. I forgot a semicolon.



EDIT: @Daem: You don't know what team blue is... And he just missed a slash.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)