Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Üzenetek - kajahun

Oldalak: [1]
1
Segítségkérés / MySQL probléma
« Dátum: 2017. Október 01. - 12:41:22 »
Nem, másik szerver(nyugi nem akarok szervert nyitni, csak gyakorlok)

2
Segítségkérés / MySQL probléma
« Dátum: 2017. Október 01. - 12:27:48 »
Sziasztok, valaki segítene?
Itt mi lehet a probléma?
 

   
   
      
          
      
      
         dbQuery(function(qh, player, username, md5password)
      
      
                     local a, b, c = dbPoll(qh, 0)
      
      
                     if b > 0 then
      
      
                         outputChatBox(\"Neked már van accountod\")
      
      
                         regisztalhat = false
      
      
                         return
      
      
                     end         
      
      
                 end, {player,username,md5password}, mysql:connectToDb(), \"SELECT * FROM accounts WHERE username=\'\" .. username .. \"\' AND cked = 0\")
      
      
                 
      
      
                 dbQuery(function(qh, player, username, md5password)
      
      
                     local result, rows, errorMsg = dbPoll(qh, 0)
      
      
                     if not regisztalhat then return end
      
      
                     if rows > 0 then
      
      
                         outputChatBox(\"Ez a név foglalt\")
      
      
                     else
      
      
                         local _, id = mysql:query_free(\"INSERT INTO accounts SET serial = \'\".. serial ..\"\', username = \'\"..tostring(username)..\"\', password = \'\"..tostring(md5password)..\"\'\", true)
      
      
                         
      
      
                         outputChatBox(\"Sikeres regisztáció\")
      
      
                     end
      
      
                 end, {player,username,md5password}, mysql:connectToDb(), \"SELECT * FROM accounts WHERE username = ? LIMIT 1\", username)
      
      
          
      
   
[/quote]

    


   
   
      
         function getSQLData()
      
      
             return \"dbname=mta;host=localhost\", \"root\", \"\", \"share=0\"
      
      
         end
      
      
          
      
      
         function connectToDb()
      
      
             local mysqlConnect = dbConnect(\"mysql\",getSQLData())
      
      
             if not (mysqlConnect) then
      
      
                 outputDebugString(\"Nem tudtam csatlakozni a MYSQL-hez.\")
      
      
             else
      
      
                 outputDebugString(\"Sikeresen csatlakoztam a MYSQL-hez.\")
      
      
             end
      
      
         end
      
      
         addEventHandler(\"onResourceStart\", getResourceRootElement(getThisResource()), connectToDb, false)
      
      
          
      
      
         function query_free(str)
      
      
             local queryresult = query(str)
      
      
             if not (queryresult == false) then
      
      
                 free_result(queryresult)
      
      
                 return true
      
      
             end
      
      
             return false
      
      
         end
      
      
          
      
      
         function free_result(resultid)
      
      
             if (not resultPool[resultid]) then
      
      
                 return false
      
      
             end
      
      
             mysql_free_result(resultPool[resultid])
      
      
             table.remove(resultPool, resultid)
      
      
             table.remove(queryPool, resultid)
      
      
             return nil
      
      
         end
      
      
          
      
      
         function fetch_assoc(resultid)
      
      
             if (not resultPool[resultid]) then
      
      
                 return false
      
      
             end
      
      
             return mysql_fetch_assoc(resultPool[resultid])
      
      
         end
      
      
          
      
      
         function escape_string(str)
      
      
             if (str) then
      
      
                 return str
      
      
             end
      
      
             return false
      
      
         end
      
      
          
      
   
[/quote]

    

 
[2017-10-01 12:05:22] WARNING: mta_login\\s_login.lua:22: Bad argument @ \'dbQuery\' [Expected db-connection at argument 3, got nil]
[2017-10-01 12:05:22] INFO: Sikeresen csatlakoztam a MYSQL-hez.
[2017-10-01 12:05:22] WARNING: mta_login\\s_login.lua:31: Bad argument @ \'dbQuery\' [Expected db-connection at argument 3, got nil]

3
Archívum / GUI Probléma
« Dátum: 2015. Október 15. - 08:58:46 »
A tut.png nincs bele írva a metába. :oooo

4
Archívum / Blipek készítése
« Dátum: 2014. December 17. - 20:13:07 »
De nem ír ki semmi errort.

5
Archívum / Blipek készítése
« Dátum: 2014. December 17. - 19:45:44 »
Sziasztok!
Az lenne hogy van egy alap community-s GTA V-ös radarom amire ha berakom ez a scriptet nem tölt be:
 
if setup.blips then
        for _, e in ipairs(getElementsByType(\"blip\")) do   
          if not getElementData(e, \"bigradar.noblip\") then
            r,g,b,a = 255,255,255,200     
            local ex, ey, ez = getElementPosition(e)
            local dist = getDistanceBetweenPoints2D(px,py,ex,ey)
            if dist <= radar.range or setup.blipsoutofrange then
              if dist > radar.range then dist = radar.range end
              local angle = 180-north+findRotation(px,py,ex,ey)
              local blipx, blipy = getDistanceRotation(0, 0, radar.radius*(dist/radar.range), angle)
              local icon = getBlipIcon(e)
              if icon == 0 or icon == 1 then r,g,b,a = getBlipColor(e) end
              blipx = radar.xc+blipx-blip.bhalf
              blipy = radar.yc+blipy-blip.bhalf
              dxDrawImage(blipx, blipy, blip.big, blip.big, \"radar_frire.png\", 0, 0, 0, tocolor(r,g,b,a)) 
              if setup.blipnames then
                local name = getElementData(e, \"bigradar.blipname\")
                if name then dxDrawText(name, blipx+blip.big, blipy+blip.half*radar.scale, blipx, blipy, tocolor(r,g,b,a), blip.textsize, \"default\") end
              end 
            end 
          end 
        end
      end 
min(608 + 154, blipY))

Oldalak: [1]
SimplePortal 2.3.7 © 2008-2024, SimplePortal