Jump to content

GTX

Members
  • Posts

    1,273
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by GTX

  1. local result, num_rows_affected = dbPoll(dbQuery(userdata_db,"SELECT * FROM masterdata WHERE username = ?",username),-1)
    if num_rows_affected ~= 0 then
        outputChatBox("#afafaf[#f9a52fSA:MP#afafaf] #f9a52fVeritabanina bir veri eklenmedi.",root,255,255,255,true)
    else
        dbExec(userdata_db,"INSERT INTO masterdata VALUES (?,?,?,?,?)",username,serial,ip,'',oyuncu)
    end

     

    • Like 1
  2. Well, only people with experience in networking could steal maps if you use triggerLatentClientEvent (not triggerClientEvent, in latent event other network traffic isn't blocked while the data is being transfered). You could even encrypt data if you'd like. FetchRemote is definitely faster but it's not secure. I'd suggest to compress map data and send it through triggerLatentClientEvent (so you don't need to worry about security much) and files through fetchRemote (that's what I use).

    So, you have three options:

    1. Go for fetchRemote on both (in terms of security, this is bad, but in terms of speed, it's faster than latent event, especially if you use Gzip compression)
    2. Go for latent event on both (in terms of speed, this is slow and is bad when all players download at the same time, but in terms of security, I think you're good to go)
    3. Use latent events and for files use fetchRemote (which are usually bigger than map and you usually don't need to protect them)

    It's up to you.

    If someone finds any other (better) way, let me know.

    • Like 1
×
×
  • Create New...