08.10.2012, 14:54
Hi!
It says TEAM_CLOWNS are not defined but it is.. :S
Code:
Part of OnPlayerRequestClass:
And the define:
Error message:
It says TEAM_CLOWNS are not defined but it is.. :S
Code:
pawn Код:
public OnPlayerSpawn(playerid)
{
if (gTeam[playerid] == TEAM_CLOWNS 0);
{
SetPlayerColor(playerid, TEAM_CLOWNS 0);
}
else if (gTeam[playerid] == TEAM_HOBOS 1) ;
{
SetPlayerColor(playerid, TEAM_HOBOS) 1);
}
else if(gTeam[playerid] == TEAM_COPS) 2);
{
SetPlayerColor(playerid, TEAM_COPS)2);
}
else if (gTeam[playerid] == TEAM_ARMY)3);
{
SetPlayerColor(playerid, TEAM_ARMY)3);
}
return 1;
}
Part of OnPlayerRequestClass:
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
switch ( classid )
{
case 0: //
{ // Then
GameTextForPlayer( playerid, "~r~TEAM Clowns", 300, 3 );
// Sends a gametext for player
// ~r~ is a red color in gametext.
// Arguments : Player ID, const string[ ], time ( milliseconds ), style
// Wiki for more info
SetPlayerTeam( playerid, TEAM_ClOWNS);
gTeam[playerid] = TEAM_ClOWNS;
}
pawn Код:
#define TEAM_ClOWNS 0
Код:
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : error 017: undefined symbol "TEAM_CLOWNS" C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : warning 215: expression has no effect C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : error 001: expected token: ";", but found ")" C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : error 029: invalid expression, assumed zero C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.