Soren Posted June 6, 2012 Share Posted June 6, 2012 Miren este script, use partes de otros scripts para poder hacer este pero la momento de hacer el gui lo hise bien le puse bindekey y todo eso pero cuando Presiono F3 solo se ve el mouse y no se ve el gui! Ayudenme http://pastebin.com/Kt5z7755 Link to comment
iFoReX Posted June 6, 2012 Share Posted June 6, 2012 eso es lo que pasa cuando se hace con partes de otros script y no entiendes como se usan, no encontre el error , el codigo es muy largo, porque mejor no creas una tabla, y le pones en getVehicleFromModel ? local cars = {{493,699999},{484,300000},{446,1599999},{469,2999999},{563,5999999},{488,6999999},{487,6999999},{417,3999999},{548,4999999},{497,7999999},{579,60000},{400,60000},{404,28000},{489,65000},{505,65000},{479,45000},{442,45000},{458,45000},{602,50000},{496,42500},{401,41000},{518,60000},{527,75000},{589,75000},{419,45000},{533,75000},{526,50000},{474,55000},{545,50000},{517,45000},{410,41000},{600,50000},{436,41000},{580,50000},{439,75000},{549,75000},{491,45000},{445,45000},{507,45000},{585,45000},{587,75000},{466,55000},{492,50000},{546,45000},{551,45000},{516,45000},{467,45000},{426,47500},{547,45000},{405,55000},{409,75000},{550,45000},{566,45000},{540,45000},{421,50000},{529,45000},{402,12000},{542,65000},{603,12000},{475,75000},{562,120000},{565,95000},{559,120000},{561,50000},{560,120000},{558,100000},{429,120000},{541,120000},{415,120000},{480,95000},{434,100000},{494,120000},{502,120000},{503,120000},{411,120000},{506,120000},{451,120000},{555,95000},{477,95000},{499,25000},{498,25000},{578,50000},{486,70000},{455,75000},{588,50000},{403,75000},{414,50000},{443,75000},{515,75000},{514,75000},{531,12000},{456,45000},{422,45000},{482,95000},{530,12000},{418,45000},{572,12000},{582,50000},{413,5000},{440,50000},{543,65000},{583,12000},{478,35000},{554,50000},{536,75000},{575,75000},{534,75000},{567,75000},{535,75000},{576,75000},{412,75000},{568,75000},{457,12000},{483,45000},{508,40000},{571,10000},{500,55000},{444,120000},{556,120000},{557,120000},{471,20000},{495,100000},{539,75000},{481,25050},{509,2500},{581,45000},{462,12000},{521,60000},{463,50000},{522,75000},{448,12000},{468,45000},{586,45000},{485,12000},{431,60000},{438,45000},{437,60000},{574,12000},{420,45000},{525,75000},{408,50000},{428,65000}} for i,v in ipairs (cars) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (carGridList) Link to comment
Soren Posted June 6, 2012 Author Share Posted June 6, 2012 eso es lo que pasa cuando se hace con partes de otros script y no entiendes como se usan, no encontre el error , el codigo es muy largo, porque mejor no creas una tabla, y le pones en getVehicleFromModel ? local cars = {{493,699999},{484,300000},{446,1599999},{469,2999999},{563,5999999},{488,6999999},{487,6999999},{417,3999999},{548,4999999},{497,7999999},{579,60000},{400,60000},{404,28000},{489,65000},{505,65000},{479,45000},{442,45000},{458,45000},{602,50000},{496,42500},{401,41000},{518,60000},{527,75000},{589,75000},{419,45000},{533,75000},{526,50000},{474,55000},{545,50000},{517,45000},{410,41000},{600,50000},{436,41000},{580,50000},{439,75000},{549,75000},{491,45000},{445,45000},{507,45000},{585,45000},{587,75000},{466,55000},{492,50000},{546,45000},{551,45000},{516,45000},{467,45000},{426,47500},{547,45000},{405,55000},{409,75000},{550,45000},{566,45000},{540,45000},{421,50000},{529,45000},{402,12000},{542,65000},{603,12000},{475,75000},{562,120000},{565,95000},{559,120000},{561,50000},{560,120000},{558,100000},{429,120000},{541,120000},{415,120000},{480,95000},{434,100000},{494,120000},{502,120000},{503,120000},{411,120000},{506,120000},{451,120000},{555,95000},{477,95000},{499,25000},{498,25000},{578,50000},{486,70000},{455,75000},{588,50000},{403,75000},{414,50000},{443,75000},{515,75000},{514,75000},{531,12000},{456,45000},{422,45000},{482,95000},{530,12000},{418,45000},{572,12000},{582,50000},{413,5000},{440,50000},{543,65000},{583,12000},{478,35000},{554,50000},{536,75000},{575,75000},{534,75000},{567,75000},{535,75000},{576,75000},{412,75000},{568,75000},{457,12000},{483,45000},{508,40000},{571,10000},{500,55000},{444,120000},{556,120000},{557,120000},{471,20000},{495,100000},{539,75000},{481,25050},{509,2500},{581,45000},{462,12000},{521,60000},{463,50000},{522,75000},{448,12000},{468,45000},{586,45000},{485,12000},{431,60000},{438,45000},{437,60000},{574,12000},{420,45000},{525,75000},{408,50000},{428,65000}} for i,v in ipairs (cars) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (carGridList) Man eso ya esta hecho Link to comment
Soren Posted June 6, 2012 Author Share Posted June 6, 2012 lo se es un consejo -.- Es que si editor eso, como soy malo en los guis no sabria como hacerle T_T Link to comment
JuanM27 Posted June 9, 2012 Share Posted June 9, 2012 los errores que encontre fue este... tal vez tengas mas if guiGetVisible( Main_Window ) == true then guiSetVisible ( Main_Window, false ) showCursor ( false ) ishidden = true else if ishidden == true then guiSetVisible ( Main_Window, true ) showCursor ( true ) else por if (guiGetVisible( Main_Window ) == true) then guiSetVisible ( Main_Window, false ) showCursor ( false ) ishidden = true elseif (ishidden == true )then guiSetVisible ( Main_Window, true ) showCursor ( true ) end Link to comment
Araa Posted June 9, 2012 Share Posted June 9, 2012 if (guiGetVisible( Main_Window )) == true then guiSetVisible ( Main_Window, false ) showCursor ( false ) elseif (guiGetVisible( Main_Window )) == false then guiSetVisible ( Main_Window, true ) showCursor ( true ) end Si no es uno es el otro, no pongas el ishidden porque no tiene sentido. Link to comment
iFoReX Posted June 9, 2012 Share Posted June 9, 2012 lol araaFTW, talvez sea una variable e.e Link to comment
Alexs Posted June 10, 2012 Share Posted June 10, 2012 lol araaFTW, talvez sea una variable e.e Revisa el script, no lo es, solo lo usa Link to comment
Soren Posted June 10, 2012 Author Share Posted June 10, 2012 no funciona ninguno y no se porque Link to comment
Recommended Posts