Hey leute,
ich versuche grad ein Aond Textlabel zu erstellen
d.h. wenn ich Admin Onduty gehe, wird ein 3DTextlabel am Admin erstellt.
Wenn ich /aoffduty gehe, sollte es weggehen, aber ich bekomme immer ein Error dabei.
Hier
ocmd:aduty(playerid,params[]){ if(IsPlayerAdmin(playerid)) { new name[MAX_PLAYER_NAME], string[50+MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); SetPlayerColor(playerid, LILA); SetPlayerSkin(playerid, 165); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid,100000); SendClientMessage(playerid, GELB,"Du hast dir einen Adminskin genommen und bist nun Admin-Onduty"); format(string, sizeof(string), "[AdmCmd] Admin %s ist nun Admin-OnDuty.",name); SendClientMessageToAll(GRUEN, string); new Text3D:aondlabel = Create3DTextLabel("Admin Onduty", LILA, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(aondlabel, playerid, 0.0, 0.0, 0.7); Aond[playerid] = 1; return 1; } else { SendClientMessage(playerid, ROT,"Du bist kein Admin!"); return 1; }}
ocmd:aoffduty(playerid,params[]){ if(Aond[playerid] == 1) { new name[MAX_PLAYER_NAME], string[50+MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); SetPlayerColor(playerid, 0xFFFFFFFF); SetPlayerHealth(playerid,100); SendClientMessage(playerid, GELB,"Du bist nun wieder Admin-Offduty"); format(string, sizeof(string), "[AdmCmd] Admin %s ist nun nicht mehr Admin-OnDuty.",name); SendClientMessageToAll(GRUEN, string); DeletePlayer3DTextLabel(playerid, aondlabel); Aond[playerid] = 0; return 1; } else { SendClientMessage(playerid, ROT,"Du bist doch garnicht Aond!"); return 1; }}
Der Error:
E:\Fun Server\filterscripts\Adminduty.pwn(66) : error 017: undefined symbol "aondlabel"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.