Dynamic Dialogs & Actions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dynamic Dialogs & Actions (
/showthread.php?tid=444746)
Dynamic Dialogs & Actions -
Rokzlive - 18.06.2013
This is a fairly complex question but i cannot even begin to guess how to do it.
I want to make a dialog that shows on command that lists all the users in my database. When i click on the user it shows another dialog with all the stats.
Basically i need a dialog that is dynamic and a way to process which user i chose in the dialog. If i can get that i can do the rest.
User Database Layout
Код HTML:
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`money` int(11) NOT NULL DEFAULT '0',
`score` int(11) NOT NULL DEFAULT '0',
`stafflevel` int(11) NOT NULL DEFAULT '0',
`donor` tinyint(1) NOT NULL DEFAULT '0',
`handle` varchar(20) NOT NULL DEFAULT 'Newbie',
`slots` int(11) NOT NULL DEFAULT '0',
`ownedvehicles` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
Re: Dynamic Dialogs & Actions -
MP2 - 18.06.2013
You want to show EVERY account? What if you have 10,000 accounts?
Re: Dynamic Dialogs & Actions -
Rokzlive - 18.06.2013
Good point. I planned to use it also so players could list all the vehicles they own and see their stats. So i could still use it.
Re: Dynamic Dialogs & Actions -
TheStreetsRP - 18.06.2013
https://sampforum.blast.hk/showthread.php?tid=190068
This is what I use.