Guten Tag,
ich habe da was gemacht
undzwar:
ocmd:aduty(playerid,params[]) //Admin Duty
{
new Text3D:ADuty[MAX_PLAYER_NAME],adminduty[128];
new Float:X, Float:Y, Float:Z,grund[128];
if(sInfo[playerid][sSpieler_adminlevel] == 1991) //error hier
{
if(AdminDuty[playerid] == 0)
{
if(sscanf(params,"s[128]",grund))return SendClientMessage(playerid,ROT,"[Error]/aduty [Grund]");
GetPlayerPos (playerid, X, Y, Z);
ADuty[playerid] = Create3DTextLabel("Admin Im Dienst,DM Verboten!",ROT,X,Y,Z,50.0,0,0);
format(adminduty,sizeof(adminduty),"[Admin]%s ist im Admin Dienst Grund: %s",SpielerName(playerid),grund);
SendClientMessageToAll(ROT,adminduty);
Attach3DTextLabelToPlayer(ADuty[playerid], playerid, 0.0, 0.0, 0.75);
AdminDuty[playerid] = 1;
}
else if(AdminDuty[playerid] == 1)
{
if(sscanf(params,"s",grund))return SendClientMessage(playerid,ROT,"[Error]/aduty [Grund]");
Delete3DTextLabel(ADuty[playerid]);
format(adminduty,sizeof(adminduty),"[Admin]%s ist nun nicht mehr im Admin Dienst. Grund: %s",SpielerName(playerid),grund);
SendClientMessageToAll(ROT,adminduty);
AdminDuty[playerid] = 0;
}
}
return 1;
}
und kriege diese Errors:
C:\Users\Moriz\Desktop\Server Scripts\Nebenscript\gamemodes\dm.pwn(1691) : error 017: undefined symbol "sInfo"
C:\Users\Moriz\Desktop\Server Scripts\Nebenscript\gamemodes\dm.pwn(1691) : warning 215: expression has no effect
C:\Users\Moriz\Desktop\Server Scripts\Nebenscript\gamemodes\dm.pwn(1691) : error 001: expected token: ";", but found "]"
C:\Users\Moriz\Desktop\Server Scripts\Nebenscript\gamemodes\dm.pwn(1691) : error 029: invalid expression, assumed zero
C:\Users\Moriz\Desktop\Server Scripts\Nebenscript\gamemodes\dm.pwn(1691) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Hoffe es kann einer helfen
Mfg
Hydra