Jump to content

LUA: Failed to call?


Recommended Posts

Posted

Hello dear community, I've bought one hell of a buggy script.

It keeps giving me an error in the logs saying that it cannot Call something from my script

(I cannot give you any of this code due' to the copyrights on the bought script)

But i can show you the errors, and hopefully you might be able to atleast tell me what the problem could be.

(I prefer doing stuff myself also :-) )

First Error's:

[2011-05-03 15:36:00] ERROR: ? call: failed to call 'item-system:loadItems' 
[2011-05-03 19:00:42] ERROR: lottery\s_lottery_system.lua:81: call: failed to call 'item-system:deleteAll' 
[2011-05-03 15:32:39] ERROR: ? call: failed to call 'item-system:loadItems' 
[2011-05-03 15:36:50] ERROR: global\item_globals.lua:6: call: failed to call 'item-system:hasItem' 

As you've might have noticed it's my inventory system that totally freaks out when an player connects.

Ohh yea also this one error:

[2011-05-03 16:00:42] WARNING: faction-system\s_faction_system.lua:1071: Bad argument @ 'getElementData' 
[2011-05-03 16:00:42] ERROR: faction-system\s_faction_system.lua:906: attempt to perform arithmetic on local 'bankmoney' (a boolean value) 

I hope that you guys will help me out, I'm new at LUA Scripting and would love to atleast know how to fix these errors (It would give me an great boost within' LUA)

Posted
Hello dear community, I've bought one hell of a buggy script.

It keeps giving me an error in the logs saying that it cannot Call something from my script

(I cannot give you any of this code due' to the copyrights on the bought script)

But i can show you the errors, and hopefully you might be able to atleast tell me what the problem could be.

(I prefer doing stuff myself also :-) )

First Error's:

[2011-05-03 15:36:00] ERROR: ? call: failed to call 'item-system:loadItems' 
[2011-05-03 19:00:42] ERROR: lottery\s_lottery_system.lua:81: call: failed to call 'item-system:deleteAll' 
[2011-05-03 15:32:39] ERROR: ? call: failed to call 'item-system:loadItems' 
[2011-05-03 15:36:50] ERROR: global\item_globals.lua:6: call: failed to call 'item-system:hasItem' 

As you've might have noticed it's my inventory system that totally freaks out when an player connects.

Ohh yea also this one error:

[2011-05-03 16:00:42] WARNING: faction-system\s_faction_system.lua:1071: Bad argument @ 'getElementData' 
[2011-05-03 16:00:42] ERROR: faction-system\s_faction_system.lua:906: attempt to perform arithmetic on local 'bankmoney' (a boolean value) 

I hope that you guys will help me out, I'm new at LUA Scripting and would love to atleast know how to fix these errors (It would give me an great boost within' LUA)

show your script

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted

Not allowed to due' to copyrights.

I cannot show one single piece of the code due' to those stupid copyrights + Its an 100k+ Lines script.

I just found out.

When someone tries to connect it gives an failure of something that might want to be Serversided instead of Client?

[2011-05-05 11:23:40] JOIN: Angelo joined the game (IP: XX.XXX.XX.XX) 
[2011-05-05 11:23:49] ERROR: Client triggered serverside event itemResourceStarted, but event is not added serverside 

Am I correct.?

Posted
Not allowed to due' to copyrights.

I cannot show one single piece of the code due' to those stupid copyrights + Its an 100k+ Lines script.

I just found out.

When someone tries to connect it gives an failure of something that might want to be Serversided instead of Client?

[2011-05-05 11:23:40] JOIN: Angelo joined the game (IP: XX.XXX.XX.XX) 
[2011-05-05 11:23:49] ERROR: Client triggered serverside event itemResourceStarted, but event is not added serverside 

Am I correct.?

OMG show me error lines / functions/events ....

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted

Just had permission by the seller :-)

function hasSpaceForItem( element ) 
    return call( getResourceFromName( "item-system" ), "hasSpaceForItem", element ) 
end 
  
function hasItem( element, itemID, itemValue ) 
    return call( getResourceFromName( "item-system" ), "hasItem", element, itemID, itemValue ) 
end 
  
function giveItem( element, itemID, itemValue ) 
    return call( getResourceFromName( "item-system" ), "giveItem", element, itemID, itemValue ) 
end 
  
function takeItem( element, itemID, itemValue ) 
    return call( getResourceFromName( "item-system" ), "takeItem", element, itemID, itemValue ) 
end 
  

The following codes gives these errors:

[2011-05-05 11:33:56] ERROR: attempt to call a nil value 
[2011-05-05 11:33:56] ERROR: global\item_globals.lua:6: call: failed to call 'item-system:hasItem' 

Any idea?

Posted

Meta for Globals folder:

<script src="item_globals.lua" type="server"/> 
    <export function="hasSpaceForItem" type="server"/> 
    <export function="hasItem" type="server"/> 
    <export function="giveItem" type="server"/> 
    <export function="takeItem" type="server"/> 

Posted

You "bought" it huh? the whole Valhalla scripts are on the MTA community (again), i don't think you bought anything ;)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Liar most def.

If you had a "seller" you would have asked for help from them, not have to come here and ask for help.

Posted

Bump - Question not answered.

-Guys I've bought this script all fair. -Solidsnake you should know Daniels.

Ohh no wait.. You kicked the original owner out.

I bought it from a guy named Daniel.

Posted

Sorry dude, i don't get you, i know "Daniels"? who's him? and i kicked what? i don't even know you.. :roll:

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...