pa3ck

Members
  • Content Count

    1,143
  • Joined

  • Last visited

  • Days Won

    7

pa3ck last won the day on July 10 2017

pa3ck had the most liked content!

Community Reputation

207 Celebrity

About pa3ck

  • Rank
    Banger
  • Birthday 01/01/2017

Details

  • Occupation
    Software Developer

Recent Profile Visitors

2,611 profile views
  1. pa3ck

    GTA San Andreas MTA

    Fórum moderátorként szerinted megmondhatod nekem hogy mit kérdezhetek? Ne vicceljél már Egy kérdés hogyan lehet támadás jellegű? Jó ég...
  2. pa3ck

    GTA San Andreas MTA

    Szia, kérdést tettem fel, tőle vártam a választ nem tőled, fórum szabályzatot nem sértettem, nem értem miért kérhetnéd tőlem, hogy "mellőzzük az ilyesfajta viselkedést". Egyébként nem egy mostani topic..
  3. pa3ck

    Save and load data with JSON

    There are couple of questions that need to be answered first... you only mention client side, so you don't care whether the blinkers are same for everyone? If so, you can use XML or JSON string in a client file - remember that fromJSON takes a string and converts it into a LUA table and toJSON converts a LUA table to a string that you can store in a file, once you converted the string back to LUA table, you can handle it as any other table.
  4. I'm not 100% sure I understand what you are looking for, but as far as I can understand, you want to get the color code of a specific percentage.. for example you have a scale of 0-500 reputation, you would need to know the color when the player for example has 350 reputation?
  5. Hi, I think the best option would be to use an image instead of dx function.. you can still create the arrow and text with dx functions, but the base gradient would be an image. If you really want to use pure dx, I put together some code that would create the same gradient effect using dxGetTexturePixels & dxSetPixelColor & interpolateBetween See code below: addEventHandler ("onClientResourceStart", resourceRoot, function () texture = dxCreateTexture (300, 25) local pixels = dxGetTexturePixels (texture) for i=0,300 do local progress = 100 / 300 * i / 100 local r, g, b = interpolateBetween ( 255, 0, 0, 255, 255, 0, progress, "Linear") for j=0,25 do dxSetPixelColor (pixels, i, j, r, g, b, 255) end end dxSetTexturePixels (texture, pixels) texture2 = dxCreateTexture (600, 25) local pixels2 = dxGetTexturePixels (texture2) for i=0,300 do local progress = 100 / 300 * i / 100 local r, g, b = interpolateBetween ( 255, 255, 0, 0, 255, 0, progress, "Linear") for j=0,25 do dxSetPixelColor (pixels2, i, j, r, g, b, 255) end end dxSetTexturePixels (texture2, pixels2) end) addEventHandler ("onClientRender", root, function () dxDrawImage (300, 300, 300, 25, texture) dxDrawImage (600, 300, 300, 25, texture2) end) If you need explanation let me know, I can go into detail, but I think it's pretty straight forward.
  6. pa3ck

    GTA San Andreas MTA

    Akkor most kinek is vannak szövegértelmezési problémai? Én azt mondtam, hogy azok az emberek rontják a közösséget, nem a srácról állítottam. Máskor inkább olvasd el figyelmesebben. Kötekedés lenne, ha megkérdezem, hogy ő pontosan mit is tenne egy szerver készítéshez? Ha igen akkor ne tudd meg mekkora beefet fog kapni másoktól..
  7. pa3ck

    GTA San Andreas MTA

    Én értelmezem félre? Én nem értelmeztem semmit félre barátom, én csak érdeklődtem.. A közösség viszont elmondom neked miért romlott meg az elmúlt pár évben. Mindenki saját szervert akar, pedig se a tudása se a képessége nem engedi, azt hiszi, hogy ha egy havi 1500 forintos VPS-t biztosit akkor minden meg van oldva, illetve egy 0 profittal rendelkező szerver x százalékát juttatás címszó alatt ígérget, de sok szerencsét, biztos vagyok benne, hogy találni fogsz fejlesztőket.
  8. pa3ck

    GTA San Andreas MTA

    Szia. Tehát keresel programozót, web fejlesztőt, designert illetve modellezőt. Magyarul minden pozícióra keresel embert, ami azt jelenti, hogy te semmit nem nyújtasz. Miért jönne akárki is hozzád, mit tudsz TE hozzá tenni a projecthez?
  9. pa3ck

    OwlGaming's vehicle resource?

    Good job linking bunch of leaked resources...
  10. pa3ck

    Some troubles with creating gui

    In the first instance, you set it on the window element, not the button, that's why it only worked when you clicked on the window and nothing else. Using getResourceRootElement(getThisResource()) OR resourceRoot is advised, since you only want to hook the event to the GUI being created by this resource anyway.
  11. pa3ck

    Animation Name Help

    See topic below:
  12. Use a timer to check the current speed of the vehicle and if it's above 70 and it's not already out, open it out.
  13. You probably have some resource running that sets back the alpha of the player. In your first code you set it every 3 seconds even when it's already 50, then it's being set back, that is why it flickers every 3 seconds. In Lysanders code it sets it every 1 second that is why it flickers even faster. Search for the keyword setElementAlpha in your resources folder using Notepad++ or similar.
  14. pa3ck

    getElementData error in setTimer

    Show the function / event where you set the timer. If that's all the code you have, do this: setTimer(function( ) for k, thePlayer in ipairs(getElementsByType("player")) do if getElementData(thePlayer, "asd.asd") then outputChatBox("asd", thePlayer, 255, 255, 255, true) end end end, 1000*3, 0) Keep in mind this will always loop through all players. If you want to only run it for X players, you should tie it to an event / function and pass the in the player element as explained in the previous replies.
  15. pa3ck

    [MYSQL] When you are beginner #2

    1. dbPoll will always return true as long as the statement returned without an error, even though it's empty, which means your first if statement will always be true (unless DB error happens) 2. Since you are using LIMIT 1, there's no need to use loop, it's impossible to return multiple rows. 3. dbPoll returns a table with the following structure (only 1 row in your case): { { colname1=value1, colname2=value2, ... }, { colname1=value3, colname2=value4, ... }, ... } Try this: if res[1]["Name"] then outputChatBox("User is registered") else outputChatBox("User is not registered") end 4. fromJson(toJson(res)) - what are you trying to achieve there? Is your data saved as JSON object in DB? Either way, converting to then back from JSON is pointless.