 |
|
Senior Member
Join Date: Dec 2007
Location: anger++
|

08-26-2008
, 10:07
Re: Ultimate Revive - problem
|
#6
|
read_argc() returns the number of arguments in a command, including the command itself. In your case, that'll usually be 4. So your switch never actually does anything, and the "hp" value stays at its initial value, 0. When you set someone's hp to anything below 1, that's what happens to their camera.
[edit] I see what you're trying to do now. I think it was only breaking because you were using the 3 argument version (name, hp, armor) which sets the total parameters to 4 (command, name, hp, armor). Is that right?
Last edited by Prajch; 08-26-2008 at 10:25.
|
|
|
|