Zeile (25) : error 003: declaration of a local variable must appear in a compound block
Zeile (25) : error 017: undefined symbol "pID"
Zeile (25) : warning 215: expression has no effect
Zeile (26) : error 017: undefined symbol "pID"
Zeile (27) : error 017: undefined symbol "rang"
Zeile (28) : error 017: undefined symbol "pID"
Zeile (29) : error 017: undefined symbol "pID"
6 Errors, 1 Warnungen
Du hast Errors im Skript. Kompilierung abgebrochen
PWNMod Compiler Version 1.2
(c) Trooper[Y]
In Kooperation mit GTA-Servers.de
Befel
ocmd:makeadmin(playerid,params[])
{
if(IstSpielerAdmin(playerid,5))
new pID,rang;
if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,Rot,"SERVER:/makeadmin [Name/ID] [Rang]");
if(rang<1||rang>5)return SendClientMessage(playerid,Rot,"Bitte gib ein rang von 1-5 an!");
SetPVarInt(pID,"Adminlevel",rang);
SaveAcc(pID);
SendClientMessageToAll(Rot,"A new Admin was Born");
return 1;
}