AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I don't understand this error (https://forums.alliedmods.net/showthread.php?t=100863)

phoenix120 08-18-2009 17:44

I don't understand this error
 
Hello guys i have a problem with my plugin. When i call a function 'useskill' i got this error:

Code:

Unknown command: useskill
L 08/18/2009 - 23:41:55: [AMXX] Displaying debug trace (plugin "l2mod.amxx")
L 08/18/2009 - 23:41:55: [AMXX] Run time error 5: memory access
L 08/18/2009 - 23:41:55: [AMXX]    [0] lineage2.inc::L2_get_spell_name (line 222)
L 08/18/2009 - 23:41:55: [AMXX]    [1] l2mod.sma::UseSkill (line 194)
L 08/18/2009 - 23:41:55: [AMXX]    [2] l2mod.sma::UseSkill (line 192)

if you want i will send the code.
thanks for any advance

ot_207 08-18-2009 17:46

Re: I don't understand this error
 
Send the code and highlight with @@ the lines that show these errors!

phoenix120 08-18-2009 17:51

Re: I don't understand this error
 
Ok here is it:

L2Mod.amxx: http://pastebin.com/f765934a5
Lineage2.inc: http://pastebin.com/f1d6dc1d2

Bad_Bud 08-19-2009 00:18

Re: I don't understand this error
 
The .sma, not the .amxx, please.

fysiks 08-19-2009 01:28

Re: I don't understand this error
 
Quote:

Originally Posted by Bad_Bud (Post 905135)
The .sma, not the .amxx, please.

Click on the link. It's the source code (supposedly :)).

Bad_Bud 08-19-2009 01:31

Re: I don't understand this error
 
Well gosh darnit, everyone's just out to trick me!

It looks like the script is trying to get a spell name outside of the bounds of the spell names array...


All times are GMT -4. The time now is 15:11.

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