Jump to content

Some Weird Problem.


JR10

Recommended Posts

Posted

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.

Posted

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 :S

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...