[HELP]: zcmd + sscanf
#1

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! :)
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)