Raised This Month: $ Target: $400
 0% 

Instagib plugin showing lots of errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-18-2005 , 14:50  
Reply With Quote #1

1.
Code:
if ( ma_instagib == 1 )
I'm assuming you want to check the cvar's value, in which case you have to use get_cvar_num. So it would look like this instead:
Code:
if ( get_cvar_num("ma_instagib") == 1 )
.

2. You use some cs_* commands without including cstrike, so just add
Code:
#include <cstrike>
to your includes list.

3. It looks like maybe some of your if statements should have more than one condition, which means you have to use curly braces to define what happens inside of them. As of now it will only execute the first line after the if statement if the conidition is true, which looks like it will cause a lot of weird things if the statements aren't true.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 23:48.


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