Raised This Month: $ Target: $400
 0% 

Run time error 4 (Done)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-30-2013 , 17:52   Re: Run time error 4
Reply With Quote #1

Quote:
Originally Posted by YamiKaitou View Post
In that code, line 7 is this
Code:
    if(!is_user_connected(victim) || !is_user_connected(attacker)
I see no error there.

But, given the error message, I'm going to assume that it is actually pointing to this line
Code:
if(g_Knife[attacker] && is_user_alive(attacker) && inflictor == attacker && get_user_weapon(attacker) == CSW_KNIFE)
The error is because attacker is out of range for the array g_Knife
So how to fix it?
__________________
Jhob94 is offline
Reply



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 23:19.


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