Dynamic Dialogs & Actions
#1

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 ;
Reply
#2

You want to show EVERY account? What if you have 10,000 accounts?
Reply
#3

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.
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=190068

This is what I use.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)