Hi ich habe mal in unseren script crashinfo + log erstellt also log funzt gut aber beim crash ist es so das es 100 gespamt wird
SendClientMessage(i, COLOR_YELLOW, "%s Hat ein crash."); <<<<<< Hir restartet die gm dann immmer beim crash
format(string, sizeof(string), "%s Hat ein crash", sendername); <<<<<<< Hir wird es 100 mal gespamt
Findet einer mein Fehler ?
Pls help
if(reason == 0)
{
PlayerInfo[playerid][pCrashed] = 1;
for(new slot = 0; slot != 12; slot++)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, slot, wep, ammo);
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(i, COLOR_YELLOW, "%s Hat ein crash.");
// format(string, sizeof(string), "%s Hat ein crash", sendername);
Craschlog(string);
BroadCast(COLOR_WHITE,string);
if(wep != 0 && ammo != 0)
{
if(PlayerInfo[playerid][pGun1] == 0) { PlayerInfo[playerid][pGun1] = wep; PlayerInfo[playerid][pAmmo1] = ammo; }
else if(PlayerInfo[playerid][pGun2] == 0) { PlayerInfo[playerid][pGun2] = wep; PlayerInfo[playerid][pAmmo2] = ammo; }
else if(PlayerInfo[playerid][pGun3] == 0) { PlayerInfo[playerid][pGun3] = wep; PlayerInfo[playerid][pAmmo3] = ammo; }
else if(PlayerInfo[playerid][pGun4] == 0) { PlayerInfo[playerid][pGun4] = wep; PlayerInfo[playerid][pAmmo4] = ammo; }
}
}
}
}