iam trying to add loc but iam failed so i post it....
please help me
[pawn] MessagePMFormat(killerid, GREEN,"Killed: %s, Wep: %s, Part: %s, Distance: %d, Reward:$ %d, Loc: %s",gPlayers[playerid],GetWeaponNameID(reason),GetBodyPartName(bodypart),GetDistance(playerid,killerid),reward,GetPlayerLocation( playerid ));[/pawn]
on playerlocation i put that but something happened wrong it gives me Bodypart loc why....
[pawn]public GetPlayerLocation( playerid )
{
new a=0, b=1, c=0;
new szMsg[ 256 ];
format( szMsg, sizeof( szMsg ), "Vice-City" );
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
return 1;
}[/pawn]