Ich habe es mal so versucht: (Dass über Admins ein bestimmtes Textlabel steht)
new Text3D:Scripter[MAX_PLAYERS];
new Text3D:Projektleiter[MAX_PLAYERS];
In public OnPlayerDisconnect(playerid, reason):
Delete3DTextLabel(Scripter[playerid]);
Delete3DTextLabel(Projektleiter[playerid]);
public OnPlayerSpawn(playerid):
if (PlayerInfo[playerid][pSupporter] >= 1339)
{
Scripter[playerid] = Create3DTextLabel("<Scripter>",0x0000FFFF,0.0,0.0,0.0,40.0,0);
Attach3DTextLabelToPlayer(Scripter[playerid], playerid, 0.0, 0.0, 0.7);
}
if(PlayerInfo[playerid][pAdmin] == 1450)
{
Projektleiter[playerid] = Create3DTextLabel("<Server Besitzer>",0xDF0000FF,0.0,0.0,0.0,0.0,0);
Attach3DTextLabelToPlayer(Projektleiter[playerid], playerid, 0.0, 0.0, 0.7);
}*/
Dann kommen die Errors:
C:\Users\Admin\Desktop\gm.pwn(5484) : error 010: invalid function or declaration
C:\Users\Admin\Desktop\gm.pwn(5489) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
In denen Zeilen steht das:
5484: if (PlayerInfo[playerid][pSupporter] >= 1)
5489: if(PlayerInfo[playerid][pAdmin] == 1450)
Was mache ich falsch?
Gruss
//////
Niemand?