Bekomme 4 Errors in einer Zeile aber wieso????
Pawn Code:
public OnPlayerSpawn(playerid)
{
new sup[MAX_PLAYER_NAME];
new Owner[MAX_PLAYER_NAME];
new mod[MAX_PLAYER_NAME];
new adm[MAX_PLAYER_NAME];
new text;
if(Player[playerid][Adminlevel] == 5)
{
text = "Projektleiter";
}
if(Player[playerid][Adminlevel] == 1)
{
text = "Moderator]";
}
if(Player[playerid][Adminlevel] == 2)
{
text = "Administrator";
}
if(Player[playerid][Adminlevel] == 3)
{
text = "SuperAdmin";
}
if(Player[playerid][Adminlevel] == 4)
{
text = "Projektmanager";
}
label[playerid] = Create3DTextLabel(text,COLOR_REDA,0,0,0,70.5,1);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.45);
Error Code: Die Errors sind alle in 6 Zeile werden da angezeigt
C:\Users\Klaus\Desktop\Home\pawno\new.pwn(189) : warning 225: unreachable code
C:\Users\Klaus\Desktop\Home\pawno\new.pwn(211) : error 001: expected token: ")", but found "["
C:\Users\Klaus\Desktop\Home\pawno\new.pwn(211) : error 029: invalid expression, assumed zero
C:\Users\Klaus\Desktop\Home\pawno\new.pwn(211) : warning 215: expression has no effect
C:\Users\Klaus\Desktop\Home\pawno\new.pwn(211) : error 001: expected token: ";", but found "]"
C:\Users\Klaus\Desktop\Home\pawno\new.pwn(211) : fatal error 107: too many error messages on one line