My hit system clientmessages - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: My hit system clientmessages (
/showthread.php?tid=556033)
My hit system clientmessages -
vassilis - 09.01.2015
SOLVED
Re: My hit system clientmessages -
PowerPC603 - 09.01.2015
It's because you're getting the name of player "id" before you extracted the value from sscanf.
Move both GetPlayerName statements below sscanf.
Since "id" doesn't have a value yet, it remains 0, so you're always getting the name of playerid 0, not the one you put behind your command.
Re: My hit system clientmessages -
vassilis - 09.01.2015
ye nevermind thanks for the statement anyway i made a stock and fixed by another way thanks though!