Hallo, ich habe mit dcmd und sscanf ne eigene Make Admin funktion gemacht, aber ich bekomme immer errors...
hier mal die funktion :
public OnPlayerCommandText(playerid, cmdtext[])
{
...
dcmd(makeadmin,9,cmdtext)
return1;
}
dcmd_makeadmin(playerid,params[])
{
new ziellevel;
new pID;
if(sscanf(params, "di",ziel,ziellevel))
{
return SendClientMessage(playerid,COLOR_GREY,"Bitte schreibe: /makeadmin [id] [adminlevel]");
}
if(!IsPlayerConnected(ziel)) {
return SendClientMessage(playerid,COLOR_GREY,"Der Spieler ist nicht Online");
}
new Zielspieler[MAX_PLAYER_NAME];
new string[128];
if(pInfo[playerid][alevel] ==6)
{
pInfo[pID][alevel] = ziellevel;
}
else if(pInfo[pID][alevel] >=ziellevel)
{
format(string,sizeof(string),"Das Adminlevel von %s ist bereits %s oder höher",Zielspieler,ziellevel);
SendClientMessage(playerid,COLOR_GREY,string);
return 1;
}
So... Hier jetzt die Errors:
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(112) : error 004: function "spawnmapunstream" is not implemented
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(113) : error 004: function "createenters" is not implemented
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(226) : error 004: function "leaderconnect" is not implemented
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(255) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(261) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(269) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(270) : error 004: function "CreatePlayerData" is not implemented
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(284) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(295) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(299) : error 004: function "leaderconnect" is not implemented
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(345) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(349) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(361) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(365) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(380) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(380) : error 033: array must be indexed (variable "Grund")
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(389) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(393) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(408) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(412) : error 017: undefined symbol "strget"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(460) : error 033: array must be indexed (variable "dcmd_makeadmin")
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(468) : warning 217: loose indentation
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(468) : error 017: undefined symbol "sscanf"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(470) : error 079: inconsistent return types (array & non-array)
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(472) : error 017: undefined symbol "ziel"
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(473) : error 079: inconsistent return types (array & non-array)
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(477) : warning 217: loose indentation
C:\Users\Tockra\Desktop\Samp Gamemode V1.6.3\Samp Server\gamemodes\realife06.pwn(485) : error 079: inconsistent return types (array & non-array)
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Alles anzeigen
So solange ich die makeleader funktion weglasse, compiled mein compiler ganz normal, aber sobald ich die Makeleader Funktion hinzufüge, findet pawno sogar Fehler in Zeilen, die ich garnicht verändert habe.