I want to make a ranking system for ingame ranks, but i am lost in how to make a list pop up showing all the players online at that moment.
Please Help.
ID:165506
Dec 12 2006, 7:53 am
|
|
Dec 12 2006, 7:54 am
|
|
This is how my game does it.
|
In response to Xx Dark Wizard xX
|
|
Xx Dark Wizard xX wrote:
This is how my game does it. > mob That spread light on my day... |
In response to Animay3
|
|
also you need a
mob |
In response to Xx Dark Wizard xX
|
|
Xx Dark Wizard xX wrote:
also you need a > mob k, I'm not really using it(since you helped me on my own), its just nice to know and i noted it. oh and you shant put your variables for that game(i know which one i was just playing it) because somebody could hijack the html...and set their own variables, even screw your GM capabilities, or re-program the entire game, of course temporary.. |
In response to Xx Dark Wizard xX
|
|
Xx Dark Wizard xX wrote:
> mob No, the global "variable" is just "used to force treatment of the following variable of proc as global". var/list/players[0] //a list of currently online players In this example, there are two lists of "players": one list containing all the players in the server whom are currently logged in, and another containing a list of players in the current game (this game seems to be seperated with several games which can be played inside one game). Because using "players" for the global who list would automatically refer to "src.players", you can use "global.players" to have it use the players list for the server instead of the game. As far as I know, setting "global" within a variable declaration has no effect. |
In response to Android Data
|
|
Android Data wrote:
As far as I know, setting "global" within a variable declaration has no effect. Legend has it that reading the DM Reference will assist you to know ('global vars' entry). Despite DarkWizard's way being right, it's not really the best way to do it. Why always keep a list in memory? And you're probably manipulating it on login and logout? Anyway, my game uses (:P) : #define AFK_TIME 300 //in seconds Complete with AFK player detecting. OR shall I call it, "AFK system", xD lol. |