Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/09/19 in all areas

  1. - طابت أوقاتكم أخواني الأعزاء - يسعدني و يسرني أن أقدم لكم مجموعة سيرفرات شبكة فينكس تعريف عن الشبكة شبكة فينكس هي شبكة نشأت هذا العام و بداية نشأتها كانت في سيرفر تيم سبيك يجمع لاعبين من جميع الألعاب , حيث أنه يوجد في سيرفر التيم سبيك فوق ال100 عضو , و أيضاً هذه الشبكة تدعم بعض الألعاب مثل MineCraft , GTA FiveM و MTA SA التابعة لشبكة فينكس MTA حيث أنه يوجد طاقم مخصص حالياً لبرمجة سيرفرات و هذا الطاقم مكون من مبرمجين و مصممين و إداريين ذوي كفائة عالية في اللعبة مما يساهم في تقديم كل شيء يساعد اللاعبين على الاستمتاع في السيرفر التابعة لشبكة فينكس MTA سيرفرات < هجولة > < حرب عصابات > < زومبي > < ريس > التابعة لشبكة فينكس MTA طاقم سيرفرات @DRRB-3 @[Anon]SaRaB11 @wSky @#Moha @Mr3b المبرمجين المشاركين @NX_CI @Abdul KariM @[T]|O|[P]George مصممين (مابات , اوبجكتات و صور) @KasaNoVa @MR.Saleh[Tito] @#-DR-[M]AN- @wSky طبعاً الحين شغالين بالمودات و التصاميم و بنزل لكم التحديثات كل فترة و بنعلن لكم متى افتتاح كل سيرفر تشرفونا و تنورونا بزيارتكم بنزل لكم كل جديد و التحديثات الي شغالين عليها ~ ترقبوا الإفتتاح ~ TeamSpeak Fenix Server [ ts.fx-n.net ]
    2 points
  2. Honestly, i don't know. Never tried. But according to this, this could be done for database. https://wiki.multitheftauto.com/wiki/DbConnect
    1 point
  3. Check: https://wiki.multitheftauto.com/wiki/Filepath If you need to edit something out of resource folder. Example: fileOpen(":resource_2/file_2.txt")
    1 point
  4. When you poll the query, it returns a table including other tables, each one represents a row, like this: local dbQ = dbQuery(database, "SELECT * FROM `players` WHERE `serial` = ?", player_serial) local dbR = dbPoll(dbQ, -1) -- in this case you're only expecting one row so the player will be dbR[1] serial = dbR[1].serial name = dbR[1].name -- If you're dealing with multiple entries: local dbQ = dbQuery(database, "SELECT * FROM `players`") -- This will result: { {name = "player1", serial="serial1", ...}, {name = "player2", serial="serial2", ...}, -- and so on } About the dbExec, it will almost have no effect on the performance in your case, the query when the resource start will take some milliseconds ( kind of unnoticeable server lag ), so it should be fine. also you can test the performance by the getTickCount function to make sure everything is good
    1 point
  5. Que bom que resolveu sozinho seu problema. Pros que não entenderam, é só colocar a rotação do personagem direto ao criar ele, depois daquele 1003.3
    1 point
  6. Coloca true no próximo atributo, depois do postGUI que é o último,
    1 point
  7. function ... () local username = getPlayerName(source) local qh_account = dbQuery(db, "SELECT * FROM accounts WHERE username=(?) LIMIT 1", username) local result_account = dbPoll(qh_account,-1)[1] if ( result_account ) then local serial = tostring(result_account.serial) local userSerial = getPlayerSerial(source) if ( serial == userSerial ) then outputChatBox("Yes.",source) return else outputChatBox("No.",source) return end end return end The code you're using is kind different from the ones I use about databases, but this might work. You just needed to set the serial from the db as a string and check if it's the same as the one from the player.
    1 point
  8. Muito obrigado me ajudou de mais da proxima eu nn vou esqueçer do <>
    1 point
  9. I copied the first from the wiki page: serialsToUse = { "111", "222", "333" } local queryString = dbPrepareString( connection, "SELECT * FROM `player_info` WHERE true" ) for _,serial in ipairs(serialsToUse) do queryString = queryString .. dbPrepareString( connection, " AND `serial`=?", serial ) end local handle = dbQuery( connection, queryString ) And changed it a bit serialsToUse = { "111", "222", "333" } local queryTable = {} queryTable[#queryTable + 1] = dbPrepareString( connection, "SELECT * FROM `player_info` WHERE true" ) for _,serial in ipairs(serialsToUse) do queryTable[#queryTable + 1] = dbPrepareString( connection, " AND `serial`=?", serial ) end local handle = dbQuery( connection, table.concat(queryTable) ) The performance increasement is exponential. Which depends on the content. With just 2 strings, the performance will probably not getting any better. (worse) String concatenate * strings VS (table index: .concat) + function call
    1 point
  10. 'accName' precisa retornar o nome da conta e pra isso você usa a função getAccountName. Simples correção: defina a variável accName com a função getAccountName + getPlayerAccount.
    1 point
  11. Sim, ele funciona como um setElementData. Só que é permanente. Você salva um valor qualquer em uma chave (string) qualquer. setAccountData (conta, "nomeDoDado", valor) Obs: Você não pode salvar vários valores no mesmo nome. Se fizer isso, ele vai substituir o valor que já está guardado com esse nome. Obs2: conta não é uma string e nem o login do jogador, você pode obtê-la do jogador com getPlayerAccount. Obs3: valor pode ser quase qualquer coisa: um número inteiro, número real, string, elemento.
    1 point
  12. @Matheus Nascimento utilize o botão <> do fórum para postar códigos. Não cole direto no texto utilizando formatações.
    1 point
  13. 1 point
  14. MTAsa Logo 3D Tutorials Download in description.
    1 point
×
×
  • Create New...