Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Alright what could possibly be the problem? I wouldn't like to show any code, so if you could possibly just list some possibilities it would be greatly appreciated.
|
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
id < 1, id > get_maxplayers, player not connected.
Dunno what happend with HLTVs. Anyway, put your plugin in debug mode to get detailed errors. The following checks are made when you use that native : Code:
#define CHECK_PLAYER(x) \ |
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
L 08/04/2010 - 07:28:08: [AMXX] [0] vcjb.sma::cmdCheck (line 72)
The block of code that line 72 is located: PHP Code:
|
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Code:
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:
Code:
|
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Quote:
|
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Quote:
|
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
You also check if( !is_user_alive( id ) ) twice, once at the top and then again in the loop.
|
Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Quote:
|
| All times are GMT -4. The time now is 00:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.