![]() |
I haven't tested, but having a subvariable on an array or string literal seems a bit odd to me.
Why not just use a TStaticVar? All that would need to be changed is that getGuildList() would need to return an array of TStaticVars, rather than say account names. Note: If you are using a player object or something though, that would work as it extends a TGraalVar and should support subvariables. |
I have it when a guild registers, it sets up a ton of things like
this.guilds.GUILDNAME=members with access this.guilds.GUILDNAME.kills this.guilds.GUILDNAME.levels this.guilds.GUILDNAME.deaths this.guilds.GUILDNAME.rupees this.guilds.GUILDNAME.ec theres more too, just trying to pull the guilds with top 5 kills and post them in a gui with the code I posted a few before this. so if SDE registered, it'd set up vars, like so: this.guilds.SDE this.guilds.SDE.kills this.guilds.SDE.deaths this.guilds.SDE.rupees and say SNC this.guilds.SNC u get the picture. So Im trying to pull all the this.guilds.GUILDNAME.kills for each guild registered, sort it, get the top 5 kills, then say like "Guildname: Kills" line by line a gui. |
PHP Code:
|
Quote:
This is basically what you'll need, you've tried enough to deserve it. :) PHP Code:
|
Quote:
But anyways. PHP Code:
NPC Code:The script of NPC db_registeredguilds has been updated by Switch While this PHP Code:
NPC Code:The script of NPC db_registeredguilds has been updated by Switch Note that BTK, Owner, and Poop all have 0 kills, so they can have a random order, and Wolfs has 2 kills and SDE has 22 kills. |
All times are GMT +2. The time now is 08:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.