Hey,
wieso bekomme ich diese Errors? oO
Code:
enum LSCspawn
{
Float:SpawnX,
Float:SpawnY
Float:SpawnZ, //ZEILE 108
Float:SpawnA
}
new LSCS[2][LSCspawn] = {
{884.5817,-1198.3049,16.9766,182.9503}, // LSC2 //ZEILE 112
{311.7694,-1777.0259,4.6254,215.2502} // LSC2
};
{
Float:SpawnX,
Float:SpawnY
Float:SpawnZ, //ZEILE 108
Float:SpawnA
}
new LSCS[2][LSCspawn] = {
{884.5817,-1198.3049,16.9766,182.9503}, // LSC2 //ZEILE 112
{311.7694,-1777.0259,4.6254,215.2502} // LSC2
};
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pSpawnLoc] == 3)
{
new rand = random(sizeof(LSCS));
SetPlayerPos(playerid,LSCS[rand][SpawnX],LSCS[rand][SpawnY],LSCS[rand][SpawnZ],LSCS[rand][SpawnA]); //ZEILE 337
return 1;
}
//.....
{
if(PlayerInfo[playerid][pSpawnLoc] == 3)
{
new rand = random(sizeof(LSCS));
SetPlayerPos(playerid,LSCS[rand][SpawnX],LSCS[rand][SpawnY],LSCS[rand][SpawnZ],LSCS[rand][SpawnA]); //ZEILE 337
return 1;
}
//.....
Errors:
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(108) : error 001: expected token: "}", but found "-label-"
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 227: more initiallers than enum fields
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 213: tag mismatch
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 227: more initiallers than enum fields
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 213: tag mismatch
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : error 018: initialization data exceeds declared size
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(337) : error 017: undefined symbol "SpawnZ"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 227: more initiallers than enum fields
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 213: tag mismatch
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 227: more initiallers than enum fields
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : warning 213: tag mismatch
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(112) : error 018: initialization data exceeds declared size
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\DeathMatch.pwn(337) : error 017: undefined symbol "SpawnZ"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.