Imposter Posted July 20, 2012 Share Posted July 20, 2012 I recently made a few scripts, and I was wondering why they have conflicts when i put them as one. s_base and c_base conflict with s_cars and c_cars. the Angel deal is suppose to come on death, but it comes on resource load and the markers are not created, any idea why its broken? Here is a link to the resource. http://delta.gamerush.si6.us/mtasa/basemode.zip Link to comment
unknooooown Posted July 21, 2012 Share Posted July 21, 2012 addEventHandler ( "onResourceStart", getRootElement, onLoad ) --on line 44 in s_base.lua should be changed to: addEventHandler ( "onResourceStart", getRootElement(), onLoad ) Also.. You dont have to use getRootElement() You can use 'root' as this is predefined. -- So this: addEventHandler( "onResourceStart", getRootElement(), func ) -- Is the same as: addEventHandler( "onResourceStart", root, func ) Link to comment
Imposter Posted July 21, 2012 Author Share Posted July 21, 2012 addEventHandler ( "onResourceStart", getRootElement, onLoad ) --on line 44 in s_base.lua should be changed to: addEventHandler ( "onResourceStart", getRootElement(), onLoad ) Also.. You dont have to use getRootElement() You can use 'root' as this is predefined. -- So this: addEventHandler( "onResourceStart", getRootElement(), func ) -- Is the same as: addEventHandler( "onResourceStart", root, func ) thanks im gonna try this after Link to comment
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