#Paper Posted January 28, 2011 Share Posted January 28, 2011 errors: all addEventHandlers are bad arguments... addEventHandler ( "onClientGUIClick", btnNitro, redirNitro, false ) addEventHandler ( "onClientGUIClick", btnMine, redirMine, false ) addEventHandler ( "onClientGUIClick", btnRepair, redirRepair, false ) function redirRepair() triggerServerEvent("onBuyRepair", getLocalPlayer()) end function redirNitro() triggerServerEvent("onBuyNitro", getLocalPlayer()) end function redirMine() triggerServerEvent("onBuyMine", getLocalPlayer()) end Link to comment
eAi Posted January 28, 2011 Share Posted January 28, 2011 You need to put your addEventHandler calls after the functions, rather than before them, as it doesn't know they exist. Link to comment
#Paper Posted January 29, 2011 Author Share Posted January 29, 2011 You need to put your addEventHandler calls after the functions, rather than before them, as it doesn't know they exist. oh ok it works P.S: How i can know whenMTA 1.1 will be released? Link to comment
bamby12 Posted February 1, 2011 Share Posted February 1, 2011 i think we are on 1.4 now Link to comment
Castillo Posted February 1, 2011 Share Posted February 1, 2011 Bamby, your post makes no sense, also it fails, current version is 1.0.4. We don't know when will the MTA 1.1 be released, you can check the progress at: http://bugs.mtasa.com/roadmap_page.php 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