Targetid doesn't detect the player
#4

The same mistake as your previous thread, targetid is again 0.

I look at the source code of your filterscript for the /rob command and you have the same mistake there again. You get the position before the sscanf line.

You set some variables to 1 when being robbed or robbing a player but instead of this way, here is what you have to do:
reset to -1 and set the ID of the player who robs or being robbed. That way, you can retrieve it in OnPlayerDisconnect and send them a message about the recovery of their wallet.
Reply


Messages In This Thread
Targetid doesn't detect the player - by KayJ - 29.09.2018, 05:24
Re: Targetid doesn't detect the player - by Electrifying - 29.09.2018, 05:50
Re: Targetid doesn't detect the player - by KayJ - 29.09.2018, 06:37
Re: Targetid doesn't detect the player - by Calisthenics - 29.09.2018, 07:48
Re: Targetid doesn't detect the player - by ReD_HunTeR - 29.09.2018, 09:00
Re: Targetid doesn't detect the player - by v1k1nG - 29.09.2018, 10:23
Re: Targetid doesn't detect the player - by TheToretto - 29.09.2018, 11:43

Forum Jump:


Users browsing this thread: 2 Guest(s)