04.10.2011, 06:58
Thats because you didnt stored the 'killerid's name in a variable.
So that will give random characters.
The 'GetName()' will return the 'playerid's name, this can be anyones name.
pawn Код:
format(killstringa, sizeof(killstringa), " /*this is for a string*/%s is on a killing spree with 3 kills!", /*this is an integer*/killerid);
pawn Код:
stock GetName(playerid)
{
new Name[24];
GetPlayerName(playerid, Name, 24);
return Name;
}
format(killstringa, sizeof(killstringa), " %s is on a killing spree with 3 kills!", GetName(killerid));