Raised This Month: $ Target: $400
 0% 

Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-03-2010 , 19:48   Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Reply With Quote #5

Quote:
Originally Posted by wrecked_ View Post
Code:
for( new i = 0; i < iNum; i++ )

EDIT: You should really code more optimistically than pessimistically. What I mean by that is that you return after every if() to avoid faulty conditions, but you should just execute the following code when you check the inverted situation for the current if() condition.

That's kind of hard to explain, so here's an example:
Code:
if( is_user_alive( id ) )     return; // code

Code:
if( !is_user_alive( id ) ) {     // code }
Thats how I used to code if statements. I have no idea why I changed.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 00:06.


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