Quote:
Originally Posted by Mionee
You can't format strings like that.
https://sampwiki.blast.hk/wiki/Format
Also, use foreach for player loops.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerWeapon(killerid) == 38) { foreach(new i: Player) { if(IsPlayerAdmin(i)) { new string[110]; format(string, sizeof(string), "{FF0000}%s has been reported automatically by the server[Reason: Minigun], Advice: Spec", killerid); SendClientMessage(i, -1, string); } else { if(IsPlayerConnected(killerid)) return SendClientMessage(i, -1, "{FF0000}WARNING: %s HAS LEFT THE SERVER", killerid); } } } return 1; }
|
Same goes for his other line
pawn Код:
SendClientMessage(i, -1, "{FF0000}WARNING: %s HAS LEFT THE SERVER", killerid);