-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Hiciste lo que yo te dije?
-
Good work, it looks cool.
-
Como te dije, no se si sirve para las armas de melee, proba y luego postea si funciono o no.
-
That's a really bad method, it'll keep triggering to server side which isn't good. Also, you can just set it to one or two lines, no need for all these 'if' checks.
-
No veo nada malo, fijate en la codificacion del archivo.
-
The problem is that you are setting the HORIZONTAL position, not the VERTICAL position. local messageBoxVisible = true newMessageBoxGui = { gridlist = {}, window = {} } function toggleNewWindowVisible() if (messageBoxVisible == true) then guiSetVisible(newMessageBoxGui.window[1], false) messageBoxVisible = false else guiSetVisible(newMessageBoxGui.window[1], true) messageBoxVisible = true end end addEventHandler("onClientResourceStart", resourceRoot, function() newMessageBoxGui.window[1] = guiCreateWindow(0.33, 0.00, 0.33, 0.15, "", true) guiWindowSetSizable(newMessageBoxGui.window[1], false) guiSetAlpha(newMessageBoxGui.window[1], 0.59) newMessageBoxGui.gridlist[1] = guiCreateGridList(0.03, 0.17, 0.94, 0.76, true, newMessageBoxGui.window[1]) column = guiGridListAddColumn( newMessageBoxGui.gridlist[1], "", 0.85 ) if ( column ) then row = guiGridListAddRow ( newMessageBoxGui.gridlist[1] ) guiGridListSetItemText ( newMessageBoxGui.gridlist[1], row, column, "Willkommen auf ATV - Reallife", false, false ) end guiSetVisible(newMessageBoxGui.window[1], true) addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") bindKey("o", "down", toggleNewWindowVisible) end ) function addNewMessage(message) local row = guiGridListAddRow ( newMessageBoxGui.gridlist[1] ) guiGridListSetItemText ( newMessageBoxGui.gridlist[1], row, column, message, false, false ) local rowCount = guiGridListGetRowCount ( newMessageBoxGui.gridlist[1] ) setTimer ( guiGridListSetVerticalScrollPosition, 50, 1, newMessageBoxGui.gridlist[1], 100 ) end
-
Eso es todo el contenido del archivo?
-
Fijate que devuelve "x", "y", "z" al enviarlo al client side.
-
Why does he have to use a timer?
-
You're simply using the wrong name. This: for ID=1,#gates do should be: for ID=1,#gateMarkers do for ID=1,#gateMarkers do local object, x, y, z, int, dim = gateMarkers[ID][1], gateMarkers[ID][2], gateMarkers[ID][3], gateMarkers[ID][4], gateMarkers[ID][5], gateMarkers[ID][6] local theGateCol = createColSphere(x, y, z, gateMarkers[ID][12]) local theGate = createObject (object, z, y, z, gateMarkers[ID][5], gateMarkers[ID][6], gateMarkers[ID][7]) theGateColID[theGate] = ID addEventHandler("onClientColShapeHit", theGateCol, gateOpen) addEventHandler("onClientColShapeLeave", theGateCol, gateClose) end
-
How do you know that it doesn't work? and, are you sure that you put it server side at the meta.xml?
-
The setTimer function is wrong.
-
Mind explaining what has that to do with his problem? he got all the required arguments filled:
-
There are two ways I know: 1: Position check. 2: Create a gui-label on the same position. You can always create your own GUI system with DX.
-
Same opinion here, it'll take longer to minimize the game, paste the text than open the console and write "say" then paste it.
-
El primero esta mal, pusiste "bool" y "int", pero no son necesarios, ademas de que "Boxing" no es un estilo de pelea valido y ped no esta definido. En el segundo, pusiste "Addcommandhandler", esa funcion no existe, y lua no es case-sensitive asi que tenes que ponerlo como es, osea: "addCommandHandler". Tambien te olvidaste de crear la funcion en si.
-
No se si setWeaponProperty soporta armas de melee, podes probar.
-
onMarkerHit o onClientMarkerHit setElementAlpha -- Para ocultarlo. setElementModel -- Para cambiar el skin.
-
No hace falta el for-loop. function getClanSpawn ( ClanName ) if ( not connection2 ) then return end local query = dbQuery ( connection2, "SELECT * FROM Spawns WHERE ClanName=?", tostring ( ClanName ) ) -- esto nose si esta bien local result, numrows, errmsg = dbPoll ( query, -1 ) if ( type ( result ) == "table" and #result == 0 or not result ) then return false else return result [ 1 ].spawnX, result [ 1 ].spawnY, result [ 1 ].spawnZ end end P.D: MultiKiller: No postees si no sabes.
-
AYUDA PORFAVOR ERROR EN MI SERVER!!!
Castillo replied to Steven23's topic in Ayuda relacionada al cliente/servidor
Puede que sea tu internet el problema. -
Usa "hitElement" en lugar de "luckyBugger" y borra getRandomPlayr.
-
AYUDA PORFAVOR ERROR EN MI SERVER!!!
Castillo replied to Steven23's topic in Ayuda relacionada al cliente/servidor
Deja el servidor abierto por lo menos por 12 horas, si no esta en la lista para entonces, volve y decime. -
AYUDA PORFAVOR ERROR EN MI SERVER!!!
Castillo replied to Steven23's topic in Ayuda relacionada al cliente/servidor
192.168.1.15 Eso esta mal, pusiste una IP local, no deberias haber tocado eso, ponelo asi: