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)) SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
Castillo Posted March 28, 2014 Posted March 28, 2014 What do you mean by "won't add"? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. Datastore - Store data to a database quickly. (Useful for saving scripted tables)
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? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 ! SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
Castillo Posted March 28, 2014 Posted March 28, 2014 What was the problem? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
3B00DG4MER Posted March 28, 2014 Author Posted March 28, 2014 What was the problem? ServerSide not added in meta.xml SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
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