Hey Leute,
habe mir heute ein Tutorial zum Thema "gTeam" angeschaut doch
habe ich nun 3 Errors.
Filterscript:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new gTeam[MAX_PLAYERS];
#define TEAM_Westside 0
#define TEAM_Mafia 1
#define TEAM_ZIVILISTEN 2
#endif
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0..10: gTeam[playerid] = TEAM_Westside;
case 11..19: gTeam[playerid] = TEAM_Mafia;
case 20..24: gTeam[playerid] = TEAM_ZIVILISTEN;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_Westside)
{
SetPlayerPos(playerid,2289.9819,-1520.6874,26.8750);
}
else if(gTeam[playerid] == TEAM_Mafia)
{
SetPlayerPos(playerid,820.2383,-1849.9578,13.2544);
}
else
{
SetPlayerPos(playerid,331.2365,-1512.5751,35.8672);
return 1;
}
Errors:
C:\Dokumente und Einstellungen\Administrator\Desktop\GTA SA\filterscripts\Teams.pwn(34) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Administrator\Desktop\GTA SA\filterscripts\Teams.pwn(42) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Administrator\Desktop\GTA SA\filterscripts\Teams.pwn(44) : error 030: compound statement not closed at the end of file (started at line 30)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.