Karuzo Posted February 3, 2014 Share 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. Link to comment
WASSIm. Posted February 3, 2014 Share Posted February 3, 2014 --Event onClientGUIClick --Client guiCreateWindow guiCreateEdit guiCreateButton guiGetText triggerServerEvent --Server getPlayerMoney givePlayerMoney takePlayerMoney Link to comment
Karuzo Posted February 3, 2014 Author Share Posted February 3, 2014 Thank you WASSIm., But , how should i get the Player which he selected to send the money to ? Link to comment
WASSIm. Posted February 3, 2014 Share Posted February 3, 2014 guiCreateGridList guiGridListAddColumn getElementsByType guiGridListAddRow guiGridListSetItemText getPlayerName --To get player name on list guiGridListGetItemText guiGridListGetSelectedItem Link to comment
pa3ck Posted February 3, 2014 Share Posted February 3, 2014 And the last thing is getPlayerFromName Link to comment
Karuzo Posted February 3, 2014 Author Share 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 Link to comment
WASSIm. Posted February 3, 2014 Share Posted February 3, 2014 cuz then if client side will working only for localPlayer getPlayerMoney givePlayerMoney takePlayerMoney Link to comment
Karuzo Posted February 3, 2014 Author Share Posted February 3, 2014 Oh, didn't read the wiki. Thanks for that. Link to comment
Karuzo Posted February 3, 2014 Author Share Posted February 3, 2014 Hmm, i did the panel but it doesn't really work.. http://paste.ofcode.org/briFfTNSpwndebvqQjnug6 Link to comment
pa3ck Posted February 3, 2014 Share 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]) Link to comment
Karuzo Posted February 4, 2014 Author Share Posted February 4, 2014 Ye i corrected it . But thank you for your help. 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