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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-03-2010 , 19:24   Re: Run time error 10 (plugin "vcjb.amxx") (native "cs_get_user_team" )
Reply With Quote #2

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) \
	if (x < 1 || x > gpGlobals->maxClients) { \
		MF_LogError(amx, AMX_ERR_NATIVE, "Player out of range (%d)", x); \
		return 0; \
	} else { \
		if (!MF_IsPlayerIngame(x) || FNullEnt(MF_GetPlayerEdict(x))) { \
			MF_LogError(amx, AMX_ERR_NATIVE, "Invalid player %d", x); \
			return 0; \
		} \
	}
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 08-03-2010 at 19:26.
ConnorMcLeod 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