Ist privat für mich für einen LAN Server.
//-----EXPLODE-----
if(strcmp(cmdtext, "/explode", true) == 0)
{
if(pInfo[playerid][admin] >= 6)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
tmp = strtok(cmdtext, idx);
{
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), "%s wurde von %s in die Luft gesprengt!",giveplayer, spieler);
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;
}
Zitat
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(492) : warning 225: unreachable code
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(492) : error 017: undefined symbol "giveplayerid"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(493) : error 017: undefined symbol "giveplayerid"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(493) : error 017: undefined symbol "giveplayer"
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(493) : error 029: invalid expression, assumed zero
C:\Users\Jens\Games\Rockstar Games\GTA San Andreas\GTA San Andreas\filterscripts\Adminsystem.pwn(493) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Alles anzeigen