#Paper Posted January 28, 2011 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
eAi Posted January 28, 2011 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.
#Paper Posted January 29, 2011 Author 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?
Castillo Posted February 1, 2011 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
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