Hallo,
ich habe ein Problem mit meinem AdminRank Switch & Case. Ich weiß nicht was ich falsch mache ich bitte um Hilfe.
forward AdminRank(i);
public AdminRank(i)
{
new AdminLevel = PlayerInfo[i][pAdminlevel];
switch(AdminLevel)
{
case 0:{AdminLevel="Kein";}
case 1:{AdminLevel="Probe Supporter";}
case 2:{AdminLevel="Supporter";}
case 3:{AdminLevel="Moderator";}
case 4:{AdminLevel="Super Moderator";}
case 5:{AdminLevel="Super Moderator";}
case 1337:{AdminLevel="Scripter";}
case 1338:{AdminLevel="Vorstand";}
case 1339:{AdminLevel="Serverbesitzer";}
}
return 1;
}
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1543) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1544) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1545) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1546) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1547) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1548) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1549) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1550) : error 006: must be assigned to an array
C:\Users\Florian\Desktop\SAMP Server\gamemodes\Evolution.pwn(1551) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
//EDIT: ERROR Hinzugefügt