Jump to content

Piorun

Members
  • Posts

    421
  • Joined

  • Last visited

Posts posted by Piorun

  1. To the left side of a Player.

    Anyway i dont want to attach element to Player but create something "near" Player. Something like i type "/create marker" and it create marker in the front of the player.

  2. or another question - could anyway send me here an algoritm to create something (np. marker) on the left side of a player. I think this should be made with sinus, cosinus or something like that.

  3. Is this possible to create 3D hud? I tried with getScreenFromWorldPosition and dxDrawMaterialLine3D but it doesnt work. Any ideas?

  4. I have a bit problem with my vehicles on my server. When i get in my car and start riding and then i relase W but i dont press any other button my car slowing down, but using some brake. In any other servers it looks normaly - when i relase W button vehicle slows down but not inhibiting. Hope u understand me - if not i try to capture some video and then i send you an youtube link.

    Thanks for any advice.

  5. Hi guys

    I want to operate on strings. So first - how to check if string have spaces and how to check that string have first letter big and rest small for ex. "George" is ok but "george" not.

  6. Hi

    Why when i use "showCursor(true)" in one script (and cursor is showing) then i cant hide cursor in another script (using showCursor(false))?

    Its same on client and server side.

    I have 1.3.2 server ver.

  7. So today i have problem with my linux server. When i want to connect to my server im getting this error:

    bladcxz.png

    What the fuck oO .. ? I tried to reinstall server but still i have this error. I tried, i think, everything.

  8. Hi guys

    Today i have a problem with words in string. So for ex i have string:

    Hi my name is paul im 20 
    

    and i want print only 3 words and after last add "..." like that:

    Hi my name... 
    

    How?

  9. I fixed that .. i thought that .db file is in main folder, but yes it was but i was in "database" folder too so i thought that this in main is my database which im connecting so i all the time open this one. Now i know it was wrong .. thanks for help.

  10. Hi guys - i have problem with my database. I made some db in "sqlite browser" and i made table named "characters" and then i put some records. Here is lua code:

    addEventHandler("onResourceStart", resourceRoot,  
    function() 
        database = dbConnect("sqlite", "projectsa.db") 
        local query = dbQuery( database, "SELECT * FROM characters") 
        outputChatBox(tostring(query)) 
        local result, rows, msg = dbPoll(query, 0) 
        if result == false then 
            outputConsole( "dbPoll failed. Error code: " .. tostring(rows) .. "  Error message: " .. tostring(msg) ) 
        end 
    end) 
    

    ,

    but when im starting script im getting:

    dbPoll failed. Error code: 1  Error message: no such table "characters" 
    

    What's wrong?

    I'm sure that table is in there, and im get connection from "dbConnect" function and query from "dbQuery".

×
×
  • Create New...