Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code in sphere html
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #1
code in sphere html
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?
05-27-2015 11:57 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: code in sphere html
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
05-28-2015 05:54 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)