JR10 Posted September 9, 2011 Share Posted September 9, 2011 I don't usually post for help but, 3 Hours looking through the code, to figure out this. It used to work, but not any more. local posX , posY , posZ = tonumber ( guiGetText ( cbGUI [ "cbPosxE" ] ) ) , tonumber ( guiGetText ( cbGUI [ "cbPosyE" ] ) ) , tonumber ( guiGetText ( cbGUI [ "cbPoszE" ] ) ) local intdim = guiGetText ( cbGUI [ "cbIntdimE" ] ) intdim = intdim : gsub ( " " , "" ) local interior = tonumber ( gettok ( intdim , 1 , "," ) ) local dimension = tonumber ( gettok ( intdim , 2 , "," ) ) local name = guiGetText ( cbGUI [ "cbNameE" ] ) local cost = tonumber ( guiGetText ( cbGUI [ "cbCostE" ] ) ) local payout = tonumber ( guiGetText ( cbGUI [ "cbPayoutE" ] ) ) local payoutTime = tonumber ( guiGetText ( cbGUI [ "cbPayouttE" ] ) ) local payoutUnit = guiComboBoxGetItemText ( cbGUI [ "cbPayoutuCB" ] , guiComboBoxGetSelected ( cbGUI [ "cbPayoutuCB" ] ) ) triggerServerEvent ( "server:createBusiness" , localPlayer , posX , posY , posZ , interior , dimension , name , cost , payout , payoutTime , payoutUnit ) All returns "", And nil with tonumber, the combo box returns what it should. I made a timer client side on start, to get one of those gui elements text, it worked. But for some weird reason, it doesn't work here. Link to comment
#Paper Posted September 9, 2011 Share Posted September 9, 2011 I suggest you to make a backup of the script on every modify that u make, anyway, where is cbGUI defined? P.S: I suggest you to show us whole code Link to comment
JR10 Posted September 9, 2011 Author Share Posted September 9, 2011 It's defined somewhere else, and that's not the problem, I tested it, the variables aren't wrong. Link to comment
#Paper Posted September 10, 2011 Share Posted September 10, 2011 What u modifyed first that this doesn't work? Link to comment
JR10 Posted September 10, 2011 Author Share Posted September 10, 2011 Well, I just transformed, getting the text from the first gui, to the focused one. It worked, still I have no clue what was the problem. Link to comment
qaisjp Posted September 11, 2011 Share Posted September 11, 2011 Is it fixed now, or do you still need help JR10 D: Link to comment
#Paper Posted September 11, 2011 Share Posted September 11, 2011 What the problem? ^^ 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