Hello, i played like 1 hours with my friend on my server and suddenly my server crash
Код:
if(DMGTimer[damagedid] != 0) {
Combo[playerid] ++;
KillTimer(DMGTimer[damagedid]);
KillTimer(DMGTimer[playerid]);
}
else Combo[playerid] = 0;
new weapon[180];
if(GetPlayerWeapon(playerid) == 0) weapon ="Fist";
else GetWeaponName(weaponid, weapon, sizeof (weapon));
if(PlayerInfo[damagedid][pHUD5] == 1 && Undercover[playerid] == 0) {
if(Combo[playerid] != 0) format(string, sizeof(string), "%s - %s +%0.1f (%dx)", GetName(playerid), weapon, amount, Combo[playerid]+1);
else format(string, sizeof(string), "%s - %d +%0.1f", GetName(playerid), weapon, amount);
PlayerTextDrawSetString(damagedid, DMGTD[0], string);
PlayerTextDrawShow(damagedid, DMGTD[0]);
}
DMGTimer[damagedid] = SetTimerEx("DamageInformer", 2000, false, "i", damagedid);
if(PlayerInfo[playerid][pHUD5] == 1) {
if(Combo[playerid] != 0) format(string, sizeof(string), "%s - %s +%0.1f (%dx)", GetName(damagedid), weapon, amount, Combo[playerid]+1);
else format(string, sizeof(string), "%s - %s +%0.1f", GetName(damagedid), weapon, amount); //this is the line
PlayerTextDrawSetString(playerid, DMGTD[1], string);
PlayerTextDrawShow(playerid, DMGTD[1]);
DMGTimer[playerid] = SetTimerEx("DamageInformer", 2000, false, "i", playerid);
}