Habe ein Problem mit /explode. Habe da 26 Errors. Ich glaub das hat was mit einer Klammer zu tun aber ich weiß net wo ich die hinsetzen soll. Den Command habe ich aus diesem Thread.
//---------------------EXPLODE--------------------------
if(strcmp(cmdtext, "/explode", true) == 0)
{
if(pInfo[playerid][admin] >= 6)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid,COLOR_YELLOW,"Verwendung: /explode [PlayerID]");
return 1;
giveplayerid = strval(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "AdmCMD: %s was exploded by %s",giveplayer, sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
SetPlayerHealth(giveplayerid, 10);
new Float:boomx, Float:boomy, Float:boomz;
GetPlayerPos(giveplayerid,boomx, boomy, boomz);
CreateExplosion(boomx, boomy , boomz, 7, 10);
new PlayerName[30];
GetPlayerName(playerid, PlayerName, 30);
}
else
{
format(string, sizeof(string), "Den Spieler mit der ID %s gibt es nicht!", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Du darfst diesen Command nicht nutzen!");
}
}
return 1;
}
ZitatAlles anzeigenC:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(127) : error 004: function "logout" is not implemented
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(142) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(154) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(161) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(165) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(170) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(177) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(181) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(186) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(190) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(193) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(204) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(210) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(220) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(222) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(225) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(228) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(230) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(232) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(241) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(246) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(251) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(255) : error 017: undefined symbol "strget"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(258) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(269) : error 079: inconsistent return types (array & non-array)
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\Grand Theft Auto San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(275) : error 079: inconsistent return types (array & non-array)
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.