Tonyx97 Posted February 10, 2013 Share Posted February 10, 2013 Hola a todos, tengo una duda, quiero obtener 2 numeros en una label pero me salio error de string, en la linea 268 miren: lblPriceHandguns = guiCreateLabel(121, 38, 130, 16, "1234 y esto 4321", false, windowBuyWeapons) function buyAmmoFunc (state,button,absoluteX,absoluteY) if (source == btnBuyWeapons) then local lblPriceHandguns = split ( guiGetText ( lblPriceHandguns ), "," ) --- Aqui se supone que es donde quiero obtener los numeros outputChatBox (""..(lblPriceHandguns[1]).." y tambien"..(lblPriceHandguns[2]).."") --- Linea 268 end end addEventHandler ("onClientGUIClick", getRootElement(), buyAmmoFunc) Link to comment
Xperia Posted February 10, 2013 Share Posted February 10, 2013 ¿Esta definido "lblPriceHandguns[1]" y "lblPriceHandguns[2]"? Link to comment
Alexs Posted February 10, 2013 Share Posted February 10, 2013 El label debe contener números así: "34,38,25" Estas seguro de que eso se cumple? Link to comment
Tonyx97 Posted February 10, 2013 Author Share Posted February 10, 2013 ah bueno, entonces nada... Link to comment
Recommended Posts