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;
}
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;
}
#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.
public OnPlayerSpawn(playerid) { switch(gTeam[playerid]) { case TEAM_CLOWNS: SetPlayerColor(playerid, TEAM_CLOWNS 0); case TEAM_HOBOS: SetPlayerColor(playerid, TEAM_HOBOS) 1); case TEAM_COPS: SetPlayerColor(playerid, TEAM_COPS)2); case TEAM_ARMY: SetPlayerColor(playerid, TEAM_ARMY)3); } return 1; }
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(443) : error 017: undefined symbol "TEAM_CLOWNS"
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(443) : error 017: undefined symbol "TEAM_CLOWNS"
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(443) : error 029: invalid expression, assumed zero
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(443) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
I can't understeand SetPlayerTeam..
Yes I used numbers after define.. Thanks I'll try with ur code!. |
Players on the same team can not kill or damage each other unless they use a knife.