Raised This Month: $ Target: $400
 0% 

Ultimate Revive - problem [Solved!]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 08-26-2008 , 10:07   Re: Ultimate Revive - problem
Reply With Quote #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.
Prajch is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode