My Scout Removal Script
I cant see why this is removing ALL of the weapons on the map. It is called by set_task that loops every 0.5 seconds. Why is it removing ALL weapons? -Thanks
Code:
And, if you're wondering WHY you would ever use this? Well, I own and run a surf server with a few altered mods on it =) |
try replacing the 0 with -1 ....
|
I assume you mean
Code:
if(ent !=0){i tried changing that 0 to a -1, but no luck. All of the weaponboxes are being removed. |
I believe weaponbox is for just about every weapon or whatnot (May be wrong)
try the classname weapon_scout. |
i rember a topic about "0" how since 0 basically means false if you use it with the ! it does something with the binary...but i saw this like months ago on a site called cprograming
|
Quote:
|
I'm still trying things, I cant get anything that works, Hope one of the experts drop in and shake this all out.
|
-1 is wrong, he should be checking if it's not 0 as he is.
"If none is found, 0 is returned" Regardless, I don't know why it's not functioning properly. |
Yeah, i knew it should be !=0, but im so stumped as to why it's not recognizing if it's a w_scout, and why it would be deleting ALL of the weaponboxes :x
|
Can nobody answer this? i figured this would be one of those quick answers....
|
| All times are GMT -4. The time now is 14:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.