Karuzo Posted February 3, 2014 Posted February 3, 2014 Hey Guys, so i wanted to make a Money-Send Panel which Player can use to send money to their friends. but i just don't figure it out how i could do that, or which func's i need. hope you could help me. -regards, KRZO.
WASSIm. Posted February 3, 2014 Posted February 3, 2014 --Event onClientGUIClick --Client guiCreateWindow guiCreateEdit guiCreateButton guiGetText triggerServerEvent --Server getPlayerMoney givePlayerMoney takePlayerMoney
Karuzo Posted February 3, 2014 Author Posted February 3, 2014 Thank you WASSIm., But , how should i get the Player which he selected to send the money to ?
WASSIm. Posted February 3, 2014 Posted February 3, 2014 guiCreateGridList guiGridListAddColumn getElementsByType guiGridListAddRow guiGridListSetItemText getPlayerName --To get player name on list guiGridListGetItemText guiGridListGetSelectedItem
Karuzo Posted February 3, 2014 Author Posted February 3, 2014 Wassim , one question, why should i use the Server-Sided functions server-side? They're all client-side too ? --Event onClientGUIClick --Client guiCreateWindow guiCreateEdit guiCreateButton guiGetText triggerServerEvent --Server getPlayerMoney givePlayerMoney takePlayerMoney
WASSIm. Posted February 3, 2014 Posted February 3, 2014 cuz then if client side will working only for localPlayer getPlayerMoney givePlayerMoney takePlayerMoney
Karuzo Posted February 3, 2014 Author Posted February 3, 2014 Oh, didn't read the wiki. Thanks for that.
Karuzo Posted February 3, 2014 Author Posted February 3, 2014 Hmm, i did the panel but it doesn't really work.. http://paste.ofcode.org/briFfTNSpwndebvqQjnug6
pa3ck Posted February 3, 2014 Posted February 3, 2014 Always use debugscript, if you used it, you should have seen the error saying that these lines are incorrect: if source == guiGridListGetItemText(Para.gridlist[1],guiGridListGetSelectedItem(Para.gridlist[1])) ~= "Oyuncu sec" then local getComboPlayer = guiGridListGetItemText(Para.gridlist[1]),guiGridListGetSelectedItem(Para.gridlist[1])
Karuzo Posted February 4, 2014 Author Posted February 4, 2014 Ye i corrected it . But thank you for your help.
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