Hi how do i use GUI to read the data base ? like when something update on db its show on Server ( with gui )
You need use Streams to send information from server to client-side. So yes, its possible to "read the data base" but giving information from server to client-side.
Hi i am sorry for bothering you i am complety noob in gui can you give an example how it works and how client read my databaseetc ?
Any one help here ????
Quote from: Strike Eagle on Dec 28, 2018, 03:38 PMAny one help here ????
be paitent maybe they're busy
Send data to server.
Process the data.
Read the database in server.
Send the data to client you read from database.
Just a quick example for you:
In client side
local st = Stream( );
st.WriteInt( 1 );
Server.SendData( st );
Now In server side:
function onClientScriptData( player )
{
local Int = Stream.ReadInt( );
if (Int == 1)
{
// Do the database query
// Then send that back to client
}
}
Now again in client side
check the stream and you got the data of your database.
Quote// Do the database query
// Then send that back to client
That's want i want to know how the code look like? if you don't mind can you tell me with an example ?
Quote from: Nihongo^ on Dec 29, 2018, 08:22 AM...
if you don't mind can you tell me with an example ?
https://forum.vc-mp.org/?topic=4484.0
https://forum.vc-mp.org/?topic=4417.0
https://forum.vc-mp.org/?board=36.20
Quote from: ! on Jan 01, 2019, 02:11 PMQuote from: Nihongo^ on Dec 29, 2018, 08:22 AM...
if you don't mind can you tell me with an example ?
https://forum.vc-mp.org/?topic=4484.0
https://forum.vc-mp.org/?topic=4417.0
https://forum.vc-mp.org/?board=36.20
hmm thanks