Jump to content

[HELP] :/ How does this happen?


Imposter

Recommended Posts

Posted

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

Eat My Dust - DM/Deathmatch

350x20_00C3FF_FFFFFF_000000_000000.png

Posted
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 ) 
  

Posted
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

Eat My Dust - DM/Deathmatch

350x20_00C3FF_FFFFFF_000000_000000.png

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