11.03.2018, 11:10
the problem is on your stats command.
in this code:
"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:
i suppose you are wanted to get "id" name instead of "playerid"
in this code:
Code:
if(sscanf(params, "s[64]", id)) id = playerid;
and also at this code:
Code:
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));