Raised This Month: $ Target: $400
 0% 

Array must be indexed error =/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zamma
Member
Join Date: May 2004
Old 10-28-2006 , 08:09   Array must be indexed error =/
Reply With Quote #1

Code:
public handnadetouch(idToucher,idTouched){
	
	new g_nademode[32]
	
	pev(idTouched, pev_owner, g_auser)
	get_user_info(g_auser, "nademode", g_nademode, 31)
	
	if ( g_nademode == 2 ){
	
		if ((pev(idToucher,pev_team) != pev(idTouched,pev_team) || (get_pcvar_num(cvar_mp_friendlyfire) && pev(idTouched,pev_team) == pev(idToucher,pev_team)))&& pev(idToucher,pev_takedamage) > 0){
    // stuff
			return PLUGIN_HANDLED;
}
}
	return PLUGIN_CONTINUE;
}
I get "array must be indexed: variable g_nademode"

help anyone :<
Zamma 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 04:52.


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