More guilds, check my GitHub

Posts 1–12 of 12 · Page 1 of 1
More guilds, check my GitHub
Well, hello everybody. I've been banging my own head trying to display the guild name and rank ingame, and finally I've understood what I was doing wrong. It was so simple, lol. In Player.cs, in the ImportStats method I think (around there anyways) there are the Guild and GuildRank properties, which were set to null. Just edit them to that:
Code:
Guild = psr.Account.Guild.Name;
GuildRank = -1;
if(Guild != null || "")
{
       GuildRank = psr.Account.Guild.Rank;
}
That's it. Of course there needs to be the previous edits I made to get the guild information.
Hope you found that useful someway. Soon I'll upload a new commit with more guild things: fully working guild board (I hope), guild hall and upgrades, guild chat, maybe (MAYBE) guild chronicle (not sure if I can code it fast, I have no idea of how the client should receive the data, will check how it is on prod).
Nice work!
when i will give me an admin it dont save it ... why?
Quote Originally Posted by Axeall View Post
when i will give me an admin it dont save it ... why?
The database's "admin" column does no more give general permissions. Change the "role" column to what you need instead: 0 = user, 1 = donator, 2 = moderator, 3 = game master, 4 = admin, 5 = owner.
wait so it's up on c4 server?
I'm awake now, so ill add it
Quote Originally Posted by C453 View Post
I'm awake now, so ill add it
what's up with your server saying testing now?
YES! BAHAHAHAHA YES!
getting error, doesn't like comparing bool with string values when i compile it

null || ""

Error 6 Operator '||' cannot be applied to operands of type 'bool' and 'string' \wServer\realm\entities\player\Player.cs 239 7 wServer
Quote Originally Posted by liquidgalaxy View Post
getting error, doesn't like comparing bool with string values when i compile it

null || ""
Can you copypaste the method that involves that line?
keep it up but it well be really great if you pt the file here
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?