-
Posts
1,708 -
Joined
-
Last visited
Everything posted by iFoReX
-
Y como se asen las columnas y las filas ?
-
edikosh y estaba bien lo mio sobre eso de las columnas ?
-
sory por el offtopic pero siempre e qrido saber que es Skipe ?
-
asi o no ? executeSQLCreateTable ( "COLUMNA", "Filas TEXT, Filas TEXT, Filas TEXT" ) ???????
-
Ok edikosh porfas explicame :DDDDD tengo toda la pasiensia del mundo please te lo agradeceria demaciado
-
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 )
-
si man ya lo ordene asi
-
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 )
-
What is the error in debugging ?
-
function onConsoleSay ( text ) if isElement(console) then ---Or if source == console then cancelEvent() outputChatBox("The best console: "..text, root, color, color, color) end end addEventHandler("onChatMessage", root, onConsoleSay)
-
"el agua no se creo!"
-
function piscina() waterp = createWater ( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 ) if ( waterp ) then setWaterLevel ( waterp, 10 ) else outputChatBox ( "El agua no se creo!" ) end addEventHandler("onResourceStart", getRootElement(), piscina) Serviria ??
-
Ok Solid now... I appear with other skin doesnt with Im bought is the skin 106
-
Solid me aparece el mensaje de else "el agua no se creo "
-
yeah solid I thinked it But IDK how I put my element in server-side if the element is client-side
-
unexpected symbol near '['
-
me da error en el 1 argumento de setWaterLevel
-
no se llena la piscina solo el mar sube de nivel
-
Now I have It Problem When I Put in GUIEditor_Edit[1] I have it problem in debugging and console here the lua function a ( ) camara = setCameraMatrix ( source, 1654.2763671875, -1670.05078125, 21.4375, 1654.16162, -1661.63123, 21.9 ) setElementDimension( source, 2 ) end addEvent ( "cm", true ) addEventHandler ( "cm", root, a ) function e ( ) local money = getPlayerMoney ( source ) if ( money >= 15000 ) then takePlayerMoney ( source, 15000 ) local Skins = xmlCreateFile("skins.xml","Propietarios") local propietarios = xmlCreateChild(Skins, "owners") local success = xmlNodeSetValue ( propietarios, "..trosting ( guiGetText ( GUIEditor_Edit[1] ) ).. " ) xmlSaveFile( Skins ) SkinsXML = xmlLoadFile("skins.xml") local child = xmlFindChild(SkinsXML, "Skin", 0) xmlNodeSetAttribute(child, "ID", ( trosting ( guiGetText ( GUIEditor_Edit[1] ) ) ) ) else outputChatBox ( " tu Dinero es ".. money .." y necesitas $15000 para comprarte un skin." ) end end addEvent ( "qtm", true ) addEventHandler ( "qtm", root, e ) function playerQuits ( ) local playeraccount = getPlayerAccount ( source ) -- get the player's account if ( playeraccount ) and ( not isGuestAccount ( playeraccount ) ) then -- if the player is logged in local skin = getElementModel ( source ) -- get the player skin. setAccountData ( playeraccount, "skin", skin ) -- save current skin to account end end addEventHandler ( "onPlayerQuit", root, playerQuits ) function playerLogin ( _, playeraccount ) -- player logs in if ( playeraccount ) then -- if account that he logged into, exists local skin = getAccountData ( playeraccount, "skin" ) -- get skin accountdata if ( skin ) then -- if he has skin accountdata setElementModel ( source, tonumber ( skin ) ) -- give him the skin end end end addEventHandler ( "onPlayerLogin", root, playerLogin ) function playerSpawns ( ) -- called when a player spawns local playeraccount = getPlayerAccount ( source ) -- get the player's account if ( playeraccount ) and ( not isGuestAccount ( playeraccount ) ) then -- if he's logged in on an account local skin = getAccountData ( playeraccount, "skin" ) -- get skin accountdata if ( skin ) then -- if he has skin accountdata setTimer ( setElementModel, 2000, 1, source, tonumber ( skin ) ) -- give him the skin end end end addEventHandler ( "onPlayerSpawn", root, playerSpawns ) -- when player spawns, call playerSpawns function Here the console and debugging error [2012-04-22 09:23:23] ERROR: GUI4\xDD_sv.lua:18: attempt to index global 'GUIEditor_Edit' (a nil value)
-
I done it : function e ( ) local money = getPlayerMoney ( source ) if ( money >= 15000 ) then takePlayerMoney ( source, 15000 ) local Skins = xmlCreateFile("skins.xml","Propietarios") local propietarios = xmlCreateChild(Skins, "owners") local success = xmlNodeSetValue ( propietarios, "..trosting ( guiGetText ( GUIEditor_Edit[1] ) ).. " ) xmlSaveFile( Skins ) else outputChatBox ( " tu Dinero es ".. money .." y necesitas $15000 para comprarte un skin." ) end end addEvent ( "qtm", true ) addEventHandler ( "qtm", root, e ) Work... But Doesnt get The text of the GUIEditor_Editor[1] why ?
-
como dice el titulo e creado un create water para una piscina pero el agua no aparece D: y en el debugging no me aparece ningun error water = createWater( 174.3408203125, -1755.365234375, 4.5, 174.3447265625, -1750.3193359375, 4.5, 163.822265625, -1755.3642578125, 4.5, 163.822265625, -1750.3271484375, 4.5 )
-
Please Kenix send me the Manuals Now I read it
-
is it exports.scoremota:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",root, function (killer) givePlayerMoney(killer,500) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountData(account,"Zombie kills",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) end addEventHandler("onPlayerLogin",root, function () local account = getPlayerAccount(source) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if zombieKills then setElementData(source,"Zombie kills",tostring(zombieKills)) else setElementData(source,"Zombie kills",0) end end)
-
Lolllllllllllllllll sory my Error is server-side xDD now create the file