JR10 Posted September 9, 2011 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
#Paper Posted September 9, 2011 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 My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
JR10 Posted September 9, 2011 Author Posted September 9, 2011 It's defined somewhere else, and that's not the problem, I tested it, the variables aren't wrong. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
#Paper Posted September 10, 2011 Posted September 10, 2011 What u modifyed first that this doesn't work? My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
JR10 Posted September 10, 2011 Author 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
MTA Team qaisjp Posted September 11, 2011 MTA Team Posted September 11, 2011 Is it fixed now, or do you still need help JR10 D:
JR10 Posted September 11, 2011 Author Posted September 11, 2011 It's fixed. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
#Paper Posted September 11, 2011 Posted September 11, 2011 What the problem? ^^ My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
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