Raised This Month: $ Target: $400
 0% 

Uwc3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RasterMan
Senior Member
Join Date: Mar 2004
Location: Luton, UK
Old 12-29-2010 , 06:13   Uwc3
Reply With Quote #1

I've manged to sort most of the errors out on my Uwc3 server but this one I can't seem to fix can anyone help please?

[AMXX] Run time error 4: index out of bounds
[AMXX] [0] uwc3_dmgevents.inc::damage_event


Code:

line 417: if (get_cvar_num("UW_dmgxpbonus"))
line 418: damageto[enemy][id] += damage
__________________
RasterMan is offline
Send a message via MSN to RasterMan
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2010 , 06:20   Re: Uwc3
Reply With Quote #2

Show full damage_event function please, use php tags.

Show also where damageto is declared (top of sma)

new damageto[??][??]
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
RasterMan
Senior Member
Join Date: Mar 2004
Location: Luton, UK
Old 12-29-2010 , 06:51   Re: Uwc3
Reply With Quote #3

#include "uwc3_dmgevents.inc" // Include the UWC3 damage events subroutines file
Attached Files
File Type: inc uwc3_dmgevents.inc (81.3 KB, 127 views)
__________________
RasterMan is offline
Send a message via MSN to RasterMan
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2010 , 07:06   Re: Uwc3
Reply With Quote #4

Change line 363

PHP Code:
   new weapon 0bodypart 0enemy get_user_attacker(id,weapon,bodypart)
   new 
damage read_data(2
to

PHP Code:
   new weapon 0bodypart 0enemy get_user_attacker(id,weapon,bodypart)
   if( !
is_user_connected(enemy) )
   {
    return 
PLUGIN_CONTINUE
   
}
   new 
damage read_data(2

And make sure that where damageto is declared (should be in main plugin ?)

new damageto[][]

That both sizes are 33

new damageto[33][33]
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
RasterMan
Senior Member
Join Date: Mar 2004
Location: Luton, UK
Old 12-29-2010 , 08:51   Re: Uwc3
Reply With Quote #5

Thx m8 will give it a go

Thx again for your help.....
__________________
RasterMan is offline
Send a message via MSN to RasterMan
RasterMan
Senior Member
Join Date: Mar 2004
Location: Luton, UK
Old 12-31-2010 , 05:40   Re: Uwc3
Reply With Quote #6

Working fine now m8 yipee
__________________
RasterMan is offline
Send a message via MSN to RasterMan
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 10:26.


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