Getting the player kills?
#3

the problem is on your stats command.

in this code:
Code:
if(sscanf(params, "s[64]", id)) id = playerid;
"s" specifier is for string while "id" variable is an integer. you can use "r" specifier for player, take a look at this thread for the list of sscanf specifier https://sampforum.blast.hk/showthread.php?tid=570927

and also at this code:
Code:
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
i suppose you are wanted to get "id" name instead of "playerid"
Reply


Messages In This Thread
Getting the player kills? - by ivndosos - 11.03.2018, 11:03
Re: Getting the player kills? - by cessil - 11.03.2018, 11:10
Re: Getting the player kills? - by X337 - 11.03.2018, 11:10
Re: Getting the player kills? - by ivndosos - 11.03.2018, 11:12
Re: Getting the player kills? - by RogueDrifter - 11.03.2018, 11:29
Re: Getting the player kills? - by ivndosos - 11.03.2018, 11:30
Re: Getting the player kills? - by RogueDrifter - 11.03.2018, 11:32
Re: Getting the player kills? - by ivndosos - 11.03.2018, 11:34
Re: Getting the player kills? - by cessil - 11.03.2018, 11:36
Re: Getting the player kills? - by RogueDrifter - 11.03.2018, 11:46

Forum Jump:


Users browsing this thread: 3 Guest(s)