Ich kriege das nicht hin... habe das so gemacht!
Über main
// Skinnamen //
#define admin_class_id() 3
new bool:playerAllowToSpawn[MAX_PLAYERS];
new ClassID[MAX_PLAYERS];
// --------- //
public OnPlayerRequestClass
public OnPlayerRequestClass(playerid, classid)
{
// Wo die Camera bei der Charakterauswahl ist //
SetPlayerPos(playerid, 1423.6112,-887.4650,56.7567);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerCameraPos(playerid, 1423.6112,-890.4650,56.7567);
SetPlayerCameraLookAt(playerid, 1423.6112,-886.4650,56.7567);
return 1;
}
// Skinname //
switch(classid) {
case admin_class_id(124): {
if(IsPlayerAdmin(playerid)) playerAllowToSpawn[playerid] = true;
else playerAllowToSpawn[playerid] = false;
break;
} default: playerAllowToSpawn[playerid] = true;
}
// ---------- //
public OnPlayerSpawn
public OnPlayerSpawn(playerid)
{
if(playerAllowToSpawn[playerid] != true)
ForcePlayerToClassSection(playerid);
return 1;
}
Fehlermeldung
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(376) : error 010: invalid function or declaration
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(377) : error 010: invalid function or declaration
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(378) : error 010: invalid function or declaration
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(379) : error 010: invalid function or declaration
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(380) : error 010: invalid function or declaration
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(381) : error 010: invalid function or declaration
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(421) : error 017: undefined symbol "playerAllowToSpawn"
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(421) : warning 215: expression has no effect
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(421) : error 001: expected token: ";", but found "]"
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(421) : error 029: invalid expression, assumed zero
D:\GTA SAMP\Server\gamemodes\TheRealWorld3.pwn(421) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.