code in sphere html - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: code in sphere html (/Thread-code-in-sphere-html) |
code in sphere html - Rizz - 05-27-2015 11:57 PM Guild: <"N/A"> [FUNCTION GNAME] if (<guild>) return <guild.name> else return <N/A> endif I am using %GNAME% and i get <"N/A"> instead of simply N/A. How can i do? RE: code in sphere html - Coruja - 05-28-2015 05:54 AM these %% variables are too weird to use, but with some luck you can make it work if you're using this code inside <script language="Sphere">GUILDLIST ... </script>, the src will be the guild itself, so the "IF (<GUILD>)" will always return false since a guildstone is a item and items cant join guilds (lol) so instead use %GNAME% or check <GUILD.NAME>, try using guildstone specific functions/properties like %NAME.GUILD%, %ABBREV%, %MEMBERS.COUNT%, etc |