iFoReX Posted April 22, 2012 Posted April 22, 2012 no se pone la POS solo unas cuantas letras :/ GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2363,0.1683,0.4414,0.6033,"GUI Guardar Posicion",true) GUIEditor_Edit[1] = guiCreateEdit(120,322,220,30,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(342,322,101,31,"Guardar",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(11,58,431,254,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Posiciones",0.2) GUIEditor_Button[2] = guiCreateButton(9,324,106,29,"Obtener Pos",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.208,0.29,0.4902,0.3617,"GUI Confirmacion",true) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Label[1] = guiCreateLabel(97,47,280,17,"Para Guardar una Posicion debes pagar 20K",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Edit[2] = guiCreateEdit(84,74,301,36,"----Nombre",false,GUIEditor_Window[2]) GUIEditor_Label[2] = guiCreateLabel(185,113,176,26,"Estas seguro ?",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(12,157,111,43,"Si",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(378,157,111,43,"No",false,GUIEditor_Window[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) local me = getLocalPlayer() function obtenerLaPos() local x,y,z = getElementPosition( me ) if isPedOnGround( localPlayer) and source == GUIEditor_Button[2] then guiSetText( GUIEditor_Edit[1], " (..x..,..y..,..z..) " ) end end addEventHandler("onClientGUIClick", root, obtenerLaPos) function ponerVisible() guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end end bindKey ( "F2","down", ponerVisible )
Castillo Posted April 22, 2012 Posted April 22, 2012 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2363,0.1683,0.4414,0.6033,"GUI Guardar Posicion",true) GUIEditor_Edit[1] = guiCreateEdit(120,322,220,30,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(342,322,101,31,"Guardar",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(11,58,431,254,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Posiciones",0.2) GUIEditor_Button[2] = guiCreateButton(9,324,106,29,"Obtener Pos",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.208,0.29,0.4902,0.3617,"GUI Confirmacion",true) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Label[1] = guiCreateLabel(97,47,280,17,"Para Guardar una Posicion debes pagar 20K",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Edit[2] = guiCreateEdit(84,74,301,36,"----Nombre",false,GUIEditor_Window[2]) GUIEditor_Label[2] = guiCreateLabel(185,113,176,26,"Estas seguro ?",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(12,157,111,43,"Si",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(378,157,111,43,"No",false,GUIEditor_Window[2]) guiSetVisible ( GUIEditor_Window[1], false ) guiSetVisible ( GUIEditor_Window[2], false ) showCursor ( false ) function obtenerLaPos ( ) local x,y,z = getElementPosition( localPlayer ) if ( isPedOnGround ( localPlayer ) ) and ( source == GUIEditor_Button[2] ) then guiSetText( GUIEditor_Edit[1], "( ".. x ..",".. y ..",".. z .." )" ) end end addEventHandler ( "onClientGUIClick", root, obtenerLaPos ) function ponerVisible ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "F2", "down", ponerVisible )
iFoReX Posted April 22, 2012 Author Posted April 22, 2012 Me ayudarian para crear una tabla de SQL a esto porfavor es que no entiendo mucho esto del SQL GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2363,0.1683,0.4414,0.6033,"GUI Guardar Posicion",true) GUIEditor_Edit[1] = guiCreateEdit(120,322,220,30,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(342,322,101,31,"Guardar",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(11,58,431,254,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Posiciones",0.2) GUIEditor_Button[2] = guiCreateButton(9,324,106,29,"Obtener Pos",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.208,0.29,0.4902,0.3617,"GUI Confirmacion",true) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Label[1] = guiCreateLabel(97,47,280,17,"Para Guardar una Posicion debes pagar 20K",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Edit[2] = guiCreateEdit(84,74,301,36,"----Nombre",false,GUIEditor_Window[2]) GUIEditor_Label[2] = guiCreateLabel(185,113,176,26,"Estas seguro ?",false,GUIEditor_Window[2]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(12,157,111,43,"Si",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(378,157,111,43,"No",false,GUIEditor_Window[2]) guiSetVisible ( GUIEditor_Window[1], false ) guiSetVisible ( GUIEditor_Window[2], false ) showCursor ( false ) function obtenerLaPos ( ) local x,y,z = getElementPosition( localPlayer ) if ( isPedOnGround ( localPlayer ) ) and ( source == GUIEditor_Button[2] ) then guiSetText( GUIEditor_Edit[1], "".. x ..", ".. y ..", ".. z .."" ) end end addEventHandler ( "onClientGUIClick", root, obtenerLaPos ) function ponerVisible ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "F2", "down", ponerVisible ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[1] then guiSetVisible( GUIEditor_Window[1],false ) guiSetVisible( GUIEditor_Window[2],true ) showCursor(true) elseif source == GUIEditor_Button[4] then guiSetVisible( GUIEditor_Window[1],true ) guiSetVisible( GUIEditor_Window[2],false ) showCursor(true) end end )
Edikosh998 Posted April 22, 2012 Posted April 22, 2012 Lo que pasa scripter intermedian, es que SQL es un poco dificil..No es solo crear una tabla, sino tambien es un sistema de consulta (de ahi su nombre claro). Por lo cual, cada vez que quieras buscar un dato, necesitarias una consulta. Si queres, y tenes paciencia...te explico lentamente, pero con pasos mas basicos (sino no da).
iFoReX Posted April 22, 2012 Author Posted April 22, 2012 Ok edikosh porfas explicame :DDDDD tengo toda la pasiensia del mundo please te lo agradeceria demaciado
Edikosh998 Posted April 22, 2012 Posted April 22, 2012 Primero, sabes diferenciar una columna con una fila?
iFoReX Posted April 22, 2012 Author Posted April 22, 2012 asi o no ? executeSQLCreateTable ( "COLUMNA", "Filas TEXT, Filas TEXT, Filas TEXT" ) ???????
Renkon Posted April 22, 2012 Posted April 22, 2012 pensa en excel las columnas (atributos) son A B C D E F y las filas (entidades) son 1,2,3,4,5,6.. yo tambien quiero aprender edikosh. tenes msn/skype/qip/icq?
Edikosh998 Posted April 22, 2012 Posted April 22, 2012 Si queres te chateo por skype, pero ni ganas hablar porque estoy en conver... grandoso.juan.ignacio
Renkon Posted April 22, 2012 Posted April 22, 2012 Si queres te chateo por skype, pero ni ganas hablar porque estoy en conver...grandoso.juan.ignacio ahi te agregue
iFoReX Posted April 22, 2012 Author Posted April 22, 2012 sory por el offtopic pero siempre e qrido saber que es Skipe ?
Edikosh998 Posted April 22, 2012 Posted April 22, 2012 Skype es la herramienta mas util para cominicarse, mejor que MSN
iFoReX Posted April 22, 2012 Author Posted April 22, 2012 edikosh y estaba bien lo mio sobre eso de las columnas ?
Edikosh998 Posted April 22, 2012 Posted April 22, 2012 Mira, esto es asi executeSQLCreateTable ( "TABLA", "ColumnaUno TEXT, ColumnaDos TEXT, ColumnaTres TEXT" ) Para insertar executeSQLQuery("INSERT INTO Tabla (ColumnaUno,ColumnaDos,ColumnaTres) VALUES ('Pepe','Mota','Alguien')")
iFoReX Posted April 22, 2012 Author Posted April 22, 2012 mmm Ok man voy entendiendo , pero lo del executeSQlQuery en lo de VALUES eso no entendi
Renkon Posted April 22, 2012 Posted April 22, 2012 mmm Ok man voy entendiendo , pero lo del executeSQlQuery en lo de VALUES eso no entendi Inserta en la tabla "tabla" algo. Y pone, para ponerle valores a la columna uno, dos y tres. pone pepe mota alguien y seria una nueva entidad entendes?
Recommended Posts