05.01.2013, 10:30
Hello, members of SA-MP Forums. I have the following code:
And.. console output:
1 - playerid ; 65535 - killerid ; 255 - reason (weapon id) - 255
In-game output:
Why is this happening and how to fix it?
pawn Код:
new gunname[32], dName[MAX_PLAYER_NAME], rName[MAX_PLAYER_NAME];
GetWeaponName(reason,gunname,sizeof(gunname));
GetPlayerName(playerid,dName,MAX_PLAYER_NAME);
GetPlayerName(killerid,rName,MAX_PLAYER_NAME);
printf("%d,%d,%d",playerid,killerid,reason);
format(string, sizeof(string), "Administrator Warning: %s has killed %s using %s.", rName, dName, gunname);
SendClientMessage(playerid, -1, string);
Код:
1,65535,255
In-game output:
Код:
. has killed [player name here] using .