3B00DG4MER Posted April 12, 2014 Share Posted April 12, 2014 Hello,Today I've made Iron Miner Job All Things works perfectly ,But there something ,When Send the info of Account from Server to Client won't Triggering Server Side: triggerClientEvent("onClientCraft", root,tonumber(newirons))) Client Side: GUIEditor.label[1] = guiCreateLabel(327, 209, 182, 29, "You have 0 blocks of iron", false, GUIEditor.window[3]) function getirons(irons) guiSetText(GUIEditor.label[1],"You have "..irons.." blocks of iron") end addEvent("onClientCraft") addEventHandler("onClientCraft", getRootElement(),getirons) Error:Server Triggered ClientSide event onClientCraft,but event is not marked as Remotly triggerable Link to comment
gghvcffcv Posted April 12, 2014 Share Posted April 12, 2014 triggerClientEvent("onClientCraft", root,tonumber(newirons))) why 3 ))), test putting Same name to the functions in the trigger addEventHandler("onClientCraft", getRootElement(),getirons) Link to comment
3B00DG4MER Posted April 12, 2014 Author Share Posted April 12, 2014 triggerClientEvent("onClientCraft", root,tonumber(newirons))) why 3 ))), test putting Same name to the functions in the triggeraddEventHandler("onClientCraft", getRootElement(),getirons) Unexpected ')' Link to comment
3B00DG4MER Posted April 12, 2014 Author Share Posted April 12, 2014 triggerClientEvent("onClientCraft", root,tonumber(newirons))) why 3 ))), test putting Same name to the functions in the triggeraddEventHandler("onClientCraft", getRootElement(),getirons) i have fixed i have forgotten to add :addEvent("onClientCraft", true) 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