AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Uwc3 (https://forums.alliedmods.net/showthread.php?t=146545)

RasterMan 12-29-2010 06:13

Uwc3
 
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

ConnorMcLeod 12-29-2010 06:20

Re: Uwc3
 
Show full damage_event function please, use php tags.

Show also where damageto is declared (top of sma)

new damageto[??][??]

RasterMan 12-29-2010 06:51

Re: Uwc3
 
1 Attachment(s)
#include "uwc3_dmgevents.inc" // Include the UWC3 damage events subroutines file

ConnorMcLeod 12-29-2010 07:06

Re: Uwc3
 
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]

RasterMan 12-29-2010 08:51

Re: Uwc3
 
Thx m8 will give it a go

Thx again for your help.....

RasterMan 12-31-2010 05:40

Re: Uwc3
 
Working fine now m8 yipee :)


All times are GMT -4. The time now is 02:05.

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