Guest Posted January 5, 2008 Posted January 5, 2008 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?
rjcnz333 Posted January 5, 2008 Posted January 5, 2008 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)
ChrML Posted January 6, 2008 Posted January 6, 2008 getClientLevel no longer exists. It did before the ACL was implemented and got deprecated.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now