Raised This Month: $ Target: $400
 0% 

Solved Runtime error 4: index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 08-04-2020 , 16:35   Runtime error 4: index out of bounds
Reply With Quote #1

I am getting runtime error 4 on this simple part of code.
Can anyone help me to fix it ?
Code:
// Current Weapon info
public message_cur_weapon(id)
{
	// Not alive or zombie
	if (!g_isalive[id] || g_zombie[id])
		return;
	
	if (g_sniper[id])
		return;
	
	if (b_uAmmo[id])
	{
		// HUD should show full clip all the time
		set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
	}
}
Error on this line : if (!g_isalive[id] || g_zombie[id])

Last edited by Abhinash; 08-04-2020 at 18:42.
Abhinash is offline
 


Thread Tools
Display Modes

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 13:54.


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