SA-MP Forums Archive
[HELP]: zcmd + sscanf - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]: zcmd + sscanf (/showthread.php?tid=195012)



[HELP]: zcmd + sscanf - Alex_Valde - 01.12.2010

Hello, I'm trying to make " /SetHP " command and I have one problem.
Whenever I try to make like: " /SetHP 1 50 " and there is NOBODY at the ID 50, I still get the message that setting HP was soccessfull.

And when I do like : " /SetHP <blank for ID> 50 " I still get the message...

What is wrong in my code?

Here is my code:
pawn Код:
Nothing to see here 'cause it's working now! :)



Re: [HELP]: zcmd + sscanf - cessil - 01.12.2010

try using IsPlayerConnected instead of if(ToPlayer != INVALID_PLAYER_ID)


Re: [HELP]: zcmd + sscanf - Alex_Valde - 01.12.2010

Quote:
Originally Posted by cessil
Посмотреть сообщение
try using IsPlayerConnected instead of if(ToPlayer != INVALID_PLAYER_ID)
Thanks for this tip/help mate!
Works now.