Jump to content

Send a large text from Client to Server


'LinKin

Recommended Posts

Posted

Hello,

I've a GUI Memo, of course client-side, where the player will type a maximum amount of 400 characters, then I need to store the text he wrote in a SQLite Database, thus, I need to send the text to the server in order to insert it into the database.

Is triggerServerEvent enough for this? What's the best way to do it?

Need a clanwar script? Click here!

Do you want some free scripts for your DD server? Visit my website.

Posted
Hello,

I've a GUI Memo, of course client-side, where the player will type a maximum amount of 400 characters, then I need to store the text he wrote in a SQLite Database, thus, I need to send the text to the server in order to insert it into the database.

Is triggerServerEvent enough for this? What's the best way to do it?

i think triggerServerEvent is engouh , for more maybe you can use triggerLatentServerEvent this function is the same as triggerServerEvent except the transmission rate of the data contained in the arguments can be limited and other network traffic is not blocked while the data is being transferred.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

I think I will use latentEvent because the server might freeze for a little while due to the lengh of the text..

Need a clanwar script? Click here!

Do you want some free scripts for your DD server? Visit my website.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...