Jump to content

..:D&G:..

Members
  • Posts

    1,028
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ..:D&G:..

  1. Hello guys, I have a server running on an Unbuntu VPS and I want to know how to access the server console when I open putty. Thank you
  2. Hello, is there any way to compile multiple file at once? I am hosting my server on a "not so trusted hosting company" and I don't want them to use my scripts. I have over 1000+ files, so I don't want to compile the files 1 by 1... Thanks.
  3. I am making a login system and after the account is created, I keep getting this error in the console Any ideas ?Thanks
  4. Hello, I am trying to make a login system, and I want a function to update a specific username's data value. dbExec( connection, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) The problem with this is that I don't know how to make it so it updates the column only for a specific username, like "UPDATE 'accounts' WHERE 'username'="..user.." " Thank you.
  5. Hello guys, is there any way to "free_result" all the mysel query's to free up memory? I tried to "free_result" each query but I cannot find all of them and it takes too much time. Thank you
  6. Well, now it works, but only the first element from the "upgrades" table is displayed, but not the rest... SERVER SIDE function getCarPartsPrices(carPartName, carPartID) if (carPartID) then local carPartPrice = mysql:query_fetch_assoc("SELECT price FROM veh_upgrades_prices WHERE upgrade = " .. carPartID .. "") local carPartsString = carPartName .. "," .. carPartPrice.price .. "," .. carPartID --table.insert(carPartsTable, carPartsString) triggerClientEvent( client, "showPartsPricesWindow", client, carPartsString) end end addEvent("getCarPartsPrices", true) addEventHandler("getCarPartsPrices", getRootElement(), getCarPartsPrices) CLIENT SIDE function sendCarPartsPricesToServer() for i, v in ipairs(upgrades) do if not (v == false) then triggerServerEvent("getCarPartsPrices", getLocalPlayer(), tostring(v[1]), tonumber(v[3])) end end end addCommandHandler("test123", sendCarPartsPricesToServer) local carPartsTable = split(carPartsTables, ';') for key, v in ipairs(carPartsTable) do local carPartName = gettok(v, 1, string.byte(',')) local carPartPrice = gettok(v, 2, string.byte(',')) or 0 local carPartID = gettok(v, 3, string.byte(',')) local row = guiGridListAddRow( gParts ) guiGridListSetItemText( gParts, row, glNume, carPartName, false, true) guiGridListSetItemData( gParts, row, glNume, tostring(carPartName)) guiGridListSetItemText( gParts, row, glPrice, carPartPrice.. " $", false, true) guiGridListSetItemData( gParts, row, glPrice, tonumber(carPartPrice)) end
  7. So how do I pass a table to client side from server side?
  8. Sa sti ca ma deranjeaza faptul ca spui ca e Owl Gaming... Serverul a fost facut acum un an si ceva, cand nici nu exista Owl pe net... Am spus-o si o repet, serverul este bazat pe Vedic! Daca nu puneam eu atunci Owl-ul pe net acum nu il avea nimeni! Serverul poate nu este 100% unic, dar trebuie sa recunosti ca in mare parte este. Aratami tu un server care ARATA (nu ca are sisteme asemanatoare sau ferestre) la fel cu ce am eu pe server. In priviinta celor care fac reclama, am spus-o si o repet, inafara de Catalin Mihai, nu cunosc pe nici unul care face reclama!!! Cum sa le spun sa faca reclama daca eu nici nu ii cunosc? Daca era sa zic la tot serverul sa faca reclama ,faceau cate vre-o 10-15 sau chiar mai multi, nu doar 2-3. Ce pot sa le fac? Nici macar nu au aceleasi nume ca pe Facebook -.- C'mon now, nu mai cauta nod in papura...
  9. Hello guys, I am trying to trigger a function which one of the arguments is a table with a string and a number. I am trying to send the table to the client side into a gui function showPartsPricesWindow(carPartsTable) local Width = 560 local Height = 547 local screenwidth, screenheight = guiGetScreenSize() local X = (screenwidth - Width)/2 local Y = (screenheight - Height)/2 if not (wPrices) then wPrices = guiCreateWindow(X, Y, Width, Height, "Car Parts Prices", false) guiWindowSetSizable(wPrices, false) gParts = guiCreateGridList(29, 87, 491, 427, false, wPrices) glNume = guiGridListAddColumn(gParts, "Part Name", 0.5) glPrice = guiGridListAddColumn(gParts, "Part Price", 0.5) for key, value in pairs(carPartsTable) do local row = guiGridListAddRow( gParts ) guiGridListSetItemText( gParts, row, glNume, value[1], false, true) guiGridListSetItemData( gParts, row, glNume, tostring(value[1])) guiGridListSetItemText( gParts, row, glPrice, value[2].. " $", false, true) guiGridListSetItemData( gParts, row, glPrice, tonumber( value[2])) end From a server side function function getCarPartsPrices(carPartName, carPartID) if (carPartID) then local carPartsTable = {} local carPartPrice = mysql:query_fetch_assoc("SELECT price FROM veh_upgrades_prices WHERE upgrade = " .. carPartID .. "") table.insert(carPartsTable, {carPartName, carPartPrice, carPartID}) triggerClientEvent( client, "showPartsPricesWindow", client, carPartsTable) end end But I get an error in client side for "value[2]" that attempt to concatenate field '?' (a table value) but I don't know why... Thank you.
  10. Sa inteleg ca esti Hank si te oftici ca te-am dat afara? )) Sa sti ca cu Catalin Mihai am reusit sa ajung la 60+ jucatori, singur nu am reusit si chiar ii multumesc, cum o fi el prost, destept, ma ajutat. Stafful in al 2lea rand nu l-am ales eu dar este destul de bun, nu o sa le sufle in fund jucatorilor dandu-le fix si fuel de fiecare data cand cer, si asta nu ii face un "staff prost". Domnule Nastac, am observat ca pe dumneavoastra va deranjeaza postarile pe care "prostii mei" le fac. Hai sa va spun pe sleau, doar pe Catalin Mihai il stiu si il am la prieteni, pe restul nu ii conusc, dar imi dau seama ca joc pe serverul meu. Ce ar trebuii sa le fac? Sa le dau ban? Sa ii injur? Nu sunt admin pe grupurile de pe facebook deci nu am ce face, oricum imi convine ca imi face alt cineva reclama si nu imi fac eu, pana la urma lauda de sine nu miroase a bine. Lasa ca si alte servere fac SPAM nu reclame, pe grupuri, si sunt servere mai josnice de cat al meu, daca nu iti convine poti oricand parasii grupele...
  11. Imi place ca ai pomenit de panoul de F9 de care chiar nu am spus ca e facut de mine, nici cand ma intrebat Geo Nistor, si recunosc ca l-am luat de pe community. Ai mentionat item-system-ul ca mna.... ce sa zici si tu, si ce legatura are decizia mea de a deschide 2 orase cu scripturile? Si cum e legat announcement-system-ul de vehicle-system? Sa sti ca nu e greu sa fac un export la (aici te corectez) topoutput-system si sa pui un playSound la un MP3 descarcat de la un site cum ar fii google traducere. Chiar nu esti deloc documentat, chit ca am zis ca folosesc Vedic-ul ca baza si am si precizat ca serverul nu este 100% unic, nu esti deloc documentat, Vedic-ul are cu totul alt sistem fata de cel de la Owl care cuprinde perk-urile de donator si nici un rang dat cu /makedonator... Dar de nu ai mentionat si scripturile celelalte? Cum ar fii pacanelele sau sistemul de tuning sau sistemul cu banii? In fine, sunt chiar FOARTE curios sa vad ce faci tu, oricum, multa bafta si toti haterii, mai luati un Algocalmin sa va m-ai calmati si sa nu mai fiti asa nervosi Uite aici o scurta prezentare: https://www.facebook.com/groups/6339496 ... up_comment
  12. Chiar te rog sa imi spui ce script e de la OG, si iti pot dovedii comparand scriptingul in sine, sa vezi ca nu am copiat nimic de la OG De ce nu recunoasteti? M-am luat eu de voi sau am zis lucruri mizere despre serverele voastre? Dar ce sa mai, romanul a avut mereu invidie in el...
  13. Chiar TOATE? Sa sti ca si eu am inceput cu Vedic, dar peste 90% din ce vezi pe serverul meu este facut de mine si nu copiat. Eu chiar pun efort in ceea ce fac, stau tarziu pana la 4-5 dimineata si lucrez la server, fac sisteme si implementari noi. Deci va rog eu mult, nu mai ziceti ca toate serverele sunt la fel si ca sunt copiate -.- Pls dude pls ala e og tradus Dude pls, ai intrat macar sa vezi? Sau ai intrebat jucatorii care au jucat inainte de a fi OG-ul leaked, cum arata? Sa presupun ca ti-ai facut contul pentru forum doar ca sa arunci cu niste invidie in mine? )
  14. Chiar TOATE? Sa sti ca si eu am inceput cu Vedic, dar peste 90% din ce vezi pe serverul meu este facut de mine si nu copiat. Eu chiar pun efort in ceea ce fac, stau tarziu pana la 4-5 dimineata si lucrez la server, fac sisteme si implementari noi. Deci va rog eu mult, nu mai ziceti ca toate serverele sunt la fel si ca sunt copiate -.- Pls
  15. Hello guys, I am trying to make a GUI that works on different resolutions, but player with smaller resolutions than mine don't see the bottom buttons as the GUI is still too big... function showVehiclesWindow(vehiclesInGarage) local Width = 567 local Height = 740 local screenwidth, screenheight = guiGetScreenSize() local X = (screenwidth - Width)/2 local Y = (screenheight - Height)/2 if not (wVehicles) then wVehicles = guiCreateWindow(X, Y, Width, Height, "Vehicles", false) guiWindowSetSizable(wVehicles, false) gList = guiCreateGridList(33, 82, 496, 490, false, wVehicles) lVehID = guiGridListAddColumn(gList, "ID", 0.15) lVehName = guiGridListAddColumn(gList, "Name", 0.2) lVehOwner = guiGridListAddColumn(gList, "Owner", 0.3) lVehInsured = guiGridListAddColumn(gList, "Insured", 0.1) for i,theVehicle in ipairs(vehiclesInGarage) do local row = guiGridListAddRow(gList) local vid = getElementData(theVehicle, "dbid") local ownerName = getElementData(theVehicle, "ownerName") local insuredState = getElementData(theVehicle, "insured") or 0 guiGridListSetItemText(gList, row, lVehID, tostring(vid), false, false) guiGridListSetItemText(gList, row, lVehName, getVehicleName(theVehicle) , false, false) guiGridListSetItemText(gList, row, lVehOwner, ownerName, false, false) guiGridListSetItemData(gList, row, lVehID, theVehicle) if insuredState == 0 then guiGridListSetItemText(gList, row, lVehInsured, "No", false, false) else guiGridListSetItemText(gList, row, lVehInsured, "Yes", false, false) end end bTunning = guiCreateButton(33, 593, 186, 74, "Ailable Tunning", false, wVehicles) addEventHandler( "onClientGUIClick", bTunning, showVehiclesUpgrades, false ) bClose = guiCreateButton(343, 593, 186, 74, "Close", false, wVehicles) addEventHandler( "onClientGUIClick", bClose, closeTunningWindow, false ) tTitlu = guiCreateLabel(38, 26, 485, 42, "Vehicles from the tunning garage!", false, wVehicles) local tFont = guiCreateFont(":guieditor/fonts/EmblemaOne.ttf", 10) guiSetFont(tTitlu, tFont) guiLabelSetHorizontalAlign(tTitlu, "center", false) guiLabelSetVerticalAlign(tTitlu, "center") showCursor(true) end end Any ideas? Thanks.
  16. Hello, I seen a video of SeeMTA's tunning system where the mechanic takes off the doors/hood and even engine from a car. So how is that possible? Thanks.
  17. Hello guys, I made this simple script to output some info messages in chat. The thing is that it only outputs the first byte (letter/number) from the table where I've inserted the messages. I know there should be a thing to get the whole string as a whole, but I don't know what it is... local messages = { "1) Message 1", "2) Message 2", "3) Message 3" } local message = math.random(1, #messages) function showInfoMessages() setTimer ( function() outputChatBox ("#D60606INFO: "..message, getRootElement(), 255, 255, 255, true) end, 10000, 0 ) end showInfoMessages()
  18. Then the circle won't cover the back and the front of the car, but I used onElementClicked instead.
  19. I managed to make it myself, thanks anyway. What's the best way of making it so that the mechanic will upgrade the vehicle when it gets near it. The thing is that I want the player to be as close as possible to the vehicle, but if I use a marker, it will only be in the center of the car and if I use a colshape, for some vehicles the player will be able to upgrade the vehicle from a distance or not be able to upgrade it as it doesn't get outside the center of the vehicle. So... what should I use?
  20. That works thanks. Now, I created the gridlist and it shows the vehicles within the colshape, but how do I get the vehicle itself (theVehicle) when the mechanic selects one of the vehicles from the gridlist and then click on the button "Show Tunables"? I know how to get the name, id etc, but I don't know how to get the vehicle itself. Thanks.
×
×
  • Create New...