Jump to content

Help Errors


Guest asteroid

Recommended Posts

Ok im trying to get the point of LUA . I downloaded the LUAedit program does it fits whith modes? Is it ok? Because when i run official gamemode i get errors : / example:

Its form as_sharks client

[HINT]:  Begin of Script - 1/5/2008 4:06:26 PM 
[ERROR]:  attempt to call global `setTimer' (a nil value) (1) - 1/5/2008 4:06:26 PM 
[HINT]:  End of Script - 1/5/2008 4:06:26 PM 

Or

as_dam

[HINT]:  Begin of Script - 1/5/2008 4:08:11 PM 
[ERROR]:  attempt to call global `getRootElement' (a nil value) (110) - 1/5/2008 4:08:11 PM 
[HINT]:  End of Script - 1/5/2008 4:08:11 PM 

error line addEventHandler("onAssaultCreateObjective",getRootElement(),create)

Or I should ignore these?

Link to comment

I tried this example from wiki:

function printLevel ( thePlayer ) 
  
        outputChatBox ( getClientName ( thePlayer ) .. "'s level is: " .. getClientLevel ( thePlayer ) ) 
end 
addCommandHandler ( "level", printLevel ) 

And get this:

ERROR: ...ta/MTA/mods/deathmatch/resourcecache/level/level.lua:3: attempt to call global 'getClientLevel' (a nil value)
Link to comment

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...