3B00DG4MER Posted March 28, 2014 Posted March 28, 2014 Hello,Skin shop .. There is one problem which is: Event won't add to ServerSide Server Side : addEvent("onBuy",true) addEventHandler("onBuy",root, function (skinID) if getPlayerMoney(source) >= 2000 then setElementModel(source,skinID) takePlayerMoney ( source, 2000 ) else outputChatBox("You don't have enough to buy a Skin") end end ) Client Side: local SelectedSkin = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if SelectedSkin then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent("onBuy",localPlayer,tonumber(SelectedSkin))
justn Posted March 28, 2014 Posted March 28, 2014 He means that in debugscript3 he's seeing "Client triggered server-side event "onBuy" but event is not added server-side.
Castillo Posted March 28, 2014 Posted March 28, 2014 @3B00DG4MER: Any error coming from the server side script? is it added to the meta.xml?
3B00DG4MER Posted March 28, 2014 Author Posted March 28, 2014 @3B00DG4MER: Any error coming from the server side script? is it added to the meta.xml? Thanks we have fix it !
3B00DG4MER Posted March 28, 2014 Author Posted March 28, 2014 What was the problem? ServerSide not added in meta.xml
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