Raised This Month: $51 Target: $400
 12% 

Help on preventing an error


Post New Thread Reply   
 
Thread Tools Display Modes
Tassadarmaster
BANNED
Join Date: Aug 2004
Location: California
Old 08-19-2005 , 08:55  
Reply With Quote #11

Can anyone plz help?
Tassadarmaster is offline
Send a message via ICQ to Tassadarmaster Send a message via AIM to Tassadarmaster Send a message via MSN to Tassadarmaster Send a message via Yahoo to Tassadarmaster
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-19-2005 , 16:42  
Reply With Quote #12

he cant go to SH forums cuz he got banned there and now he sends his noob friends to spam the forums.

So id imagine if he will do same here when he _gets_ banned.


might try to read_data for id in damage event
Freecode is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-19-2005 , 16:50  
Reply With Quote #13

Quote:
Originally Posted by Tassadarmaster
This is amxmodx, and i need someone to fix this error,
And if you would, I would appreciate it.
Listen. The code was written for AMXMod as Freecode stated.
Quote:
Originally Posted by Freecode
Code:
#include <amxmod> #include <superheromod> #include <fun> #include <vexd_utilities>

wrong forums
How did Freecode know? Simple. At the very least, do you see "#include <amxmod>"? That's a HUGE tip-off right there.

Just ask someone to convert it for you. You've probably got a bigger problem than 1 error. Don't give it to us piecemeal.

Stop pretending it's an AMXX plugin while you're at it.
Brad is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-19-2005 , 16:53  
Reply With Quote #14

Quote:
Originally Posted by Tassadarmaster
Now that i've included the amxmisc, it's still generating this error, but on a line above.
[AMXX] Run time error 10 (native)
[AMXX] Displaying call trace (plugin "cstrike\addons\amxmodx\plugins\-mirrorforce.amxx")
[AMXX] [0] - mirrorforce.sma::mf_damage (line 84)
Brad as u see his errors are in amxx but. Theres a but. If he is writing for amxx why in the world do u use amx includes. Thats really dumb and might be one of the reasons why it aint working. really stupid.
Freecode is offline
Tassadarmaster
BANNED
Join Date: Aug 2004
Location: California
Old 08-19-2005 , 17:01  
Reply With Quote #15

Quote:
Originally Posted by Freecode
he cant go to SH forums cuz he got banned there and now he sends his noob friends to spam the forums.

So id imagine if he will do same here when he _gets_ banned.


might try to read_data for id in damage event
so i change the <amxmod> to <amxmodx> ?

i didnt even send noobs ppl to spam there
Tassadarmaster is offline
Send a message via ICQ to Tassadarmaster Send a message via AIM to Tassadarmaster Send a message via MSN to Tassadarmaster Send a message via Yahoo to Tassadarmaster
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-19-2005 , 18:31  
Reply With Quote #16

amxmod = amxmodx
vexd = engine
Freecode is offline
Tassadarmaster
BANNED
Join Date: Aug 2004
Location: California
Old 08-21-2005 , 20:33  
Reply With Quote #17

Ok, now that I've changed the include from #include <amxmod> to #include<amxmodx> which stop preventing that error for a while, but I'm still getting this error like once in a while, but doesnt occur that often. And the error i get is:
Code:
[AMXX] Run time error 10 (native)
[AMXX] Displaying call trace (plugin "cstrike\addons\amxmodx\plugins\sh_mirrorforce.amxx")
 [AMXX]    [0] sh_mirrorforce.sma::mf_damage (line 84)
Tassadarmaster is offline
Send a message via ICQ to Tassadarmaster Send a message via AIM to Tassadarmaster Send a message via MSN to Tassadarmaster Send a message via Yahoo to Tassadarmaster
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-21-2005 , 21:34  
Reply With Quote #18

and whats line 84
Freecode is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 21:41  
Reply With Quote #19

Seeing as I didn't see a line 84, I'm guessing it's in this area??

Code:
public mf_damage(id) {     new damage = read_data(2)     new weapon, bodypart, attacker = get_user_attacker(id, weapon, bodypart)     if ( attacker <= 0 || attacker > SH_MAXSLOTS ) return PLUGIN_CONTINUE     if ( gHasMfPower[id] && is_user_alive(id) ) {         // do extra damage         new returnDamage = floatround( ( gPlayerLevels[id] * get_cvar_float("mf_dmgreturn") ) * damage )         if (returnDamage > 0)         {         shExtraDamage( attacker, id, returnDamage, "Mirror force field" )         new iRed,iGreen,iBlue,iWidth,iNoise       iRed = random_num(0,255)       iGreen = random_num(0,255)        iBlue = random_num(0,255)        iWidth = random_num(10,40)       iNoise = random_num(10,40)
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
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 18:09.


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