06.08.2009, 12:35
Код:
#define TEAM_MYTEAM 0
Код:
enum pInfo { team, } new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
SetPlayerClass(playerid, classid) { switch(classid) { case 0: { PlayerInfo[playerid][team] = TEAM_TEACHER; } } }
Код:
public OnPlayerSpawn(playerid) { if(IsPlayerAdmin(playerid)) { SendClientMessageToAll(0xDEEE20FF, "A Admin has Spawned!"); } switch(PlayerInfo[playerid][team]) { case TEAM_TEACHER: { PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0); SetPlayerColor(playerid,COLOR_YELLOW); } }
Код:
: warning 217: loose indentation : error 017: undefined symbol "PlayerInfo" : error 029: invalid expression, assumed zero : fatal error 107: too many error messages on one line