Error.
#1

C:\Documents and Settings\Markus\Skrivbord\Server\pawno\lvrcr.pwn(4 583) : error 028: invalid subscript (not an array or too many subscripts): "pCaged"
C:\Documents and Settings\Markus\Skrivbord\Server\pawno\lvrcr.pwn(4 583) : warning 215: expression has no effect
C:\Documents and Settings\Markus\Skrivbord\Server\pawno\lvrcr.pwn(4 583) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Markus\Skrivbord\Server\pawno\lvrcr.pwn(4 583) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Markus\Skrivbord\Server\pawno\lvrcr.pwn(4 583) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
SetPlayerToTeamColour(playerid) {

	if(gTeam[playerid] == TEAM_COP) {
line 4853
		SetPlayerColor(playerid,COLOR_BLUE); // Blue

	} else if(gTeam[playerid] == TEAM_ARMY) {

	  SetPlayerColor(playerid,COLOR_BLUEVIOLET); // Blue Violet
	  
  } else if(gTeam[playerid] == TEAM_MEDIC) {

	  SetPlayerColor(playerid,COLOR_PINK); // Forrest Green

	} else if(gTeam[playerid] == TEAM_CARFIX) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

  } else if(gTeam[playerid] == TEAM_CASSEC) {

	  SetPlayerColor(playerid,COLOR_DODGERBLUE); // Dodger Blue

	} else if(gTeam[playerid] == TEAM_DRIVER) {

	  SetPlayerColor(playerid,COLOR_DARKOLIVEGREEN); // Dark Olive Green

	} else if(gTeam[playerid] == TEAM_BISTRO) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

	} else if(gTeam[playerid] == TEAM_JAILTK) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

 	} else if(gTeam[playerid] == TEAM_PVTMED) {

	  SetPlayerColor(playerid,COLOR_PINK); // White

	} else if(gTeam[playerid] == TEAM_GASDEL) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

	} else if(gTeam[playerid] == TEAM_DRGDEL) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

	} else if(gTeam[playerid] == TEAM_HITMAN) {

	  SetPlayerColor(playerid,COLOR_BLACK); // Black

	} else if(gTeam[playerid] == TEAM_GUNDEL) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

	} else if(gTeam[playerid] == TEAM_SNITCH) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

	} else if(gTeam[playerid] == TEAM_RAPIST) {


	  SetPlayerColor(playerid,COLOR_WHITE); // White

	} else if(gTeam[playerid] == TEAM_CIVIL) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White

  } else if(gTeam[playerid] == TEAM_BOUNTY) {

	  SetPlayerColor(playerid,COLOR_WHITE); // White
	}

}
Reply
#2

pawn Код:
SetPlayerToTeamColour(playerid);
Reply
#3

You are probably missing a bracket or semicolon somewhere above this function. Since there ain't no pCaged in there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)