Blinker. Posted July 14, 2014 Posted July 14, 2014 Hello , is there a way to copy a defined thing from client side to server side ? Like if I type in a box a name and I press a button then a team should be created with that name . for example --client side function setteambutton (button,state, absoluteX,absoluteY) if source == abutton then team = guiGetText (edit) triggerServerEvent("create", root, create) end end addEventHandler ("onClientGuiClick", getRootElement (), setteambutton) --server side function create() createTeam (team) end addEvent ("create", true) addEventHandler ("create", root, create) thanks in advance
bandi94 Posted July 14, 2014 Posted July 14, 2014 triggerServerEvent("create", localPlayer, team) server side : function create(team) Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
Blinker. Posted July 14, 2014 Author Posted July 14, 2014 1 more question , after i did that , if i want to draw a text with the team name i get Attempt to concatenate a DataValue what's wrong ? thanks
Arnold-1 Posted July 14, 2014 Posted July 14, 2014 Show us your code first. Ingame Name: Arnold If you need my help, contact me on Skype @bshr.ara NOTE:DO NOT ASK ME FOR SCRIPTS, ASK ME FOR 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