Vivalavido Posted December 10, 2009 Share Posted December 10, 2009 I was wondering, I made a GUI, wich has an Gridlist. Now I also have a database ,wich hold some members.. How would I load in the database stuff in a client sided script? Is there something like callServer? Cause I think triggerServerEvent would be going back and forth.. Like I triggerServerEvent in cleinside, then I triggerClientEvent back.. That would be a drag.. Any other solutions? Thanks! Link to comment
robhol Posted December 10, 2009 Share Posted December 10, 2009 SQL is server-side, GUI is client-side. In other words, you will need to link the two scripts together somehow. For this, you should look into events. The GUI is clicked (or whatever) and sends an event (as a data request) to the server, which sends an event back with the answer. You might want to take a look at the chapter of my guide dealing with events: http://robhol.net/guide/basics Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now