GalacticGlum Posted May 16, 2015 Author Share Posted May 16, 2015 Hey all!I'm using Eclipse Final Frontier So there is a guild button and if you are not in a guild it does nothing. I want to make it so if you are not in a guild it says some text. What's the code so I can check if the player is in a guild? Link to comment Share on other sites More sharing options...
abhi2011 Posted May 16, 2015 Share Posted May 16, 2015 There should be a variable in PlayerRec that links a certain player to a guild. Go to PlayerRec and check for any Guild related fields. If you don't find anything obvious, paste your entire playerrec structure here. Link to comment Share on other sites More sharing options...
GalacticGlum Posted May 16, 2015 Author Share Posted May 16, 2015 I have fixed it!I did```If GuildData.Guild_Name = "" Then'Stuff to do if you are in no guildelse'Stuff to do if you are in guildEnd If```UPDATE: Not fixed :( Link to comment Share on other sites More sharing options...
GalacticGlum Posted May 16, 2015 Author Share Posted May 16, 2015 @[member="Abhi"] I didn't fix it :(Here is my "PlayerRec"```Private Type PlayerRec ' General name As String Class As Long Sprite As Long Level As Byte EXP As Long Access As Byte PK As Byte ' Admins Visible As Long ' Vitals Vital(1 To Vitals.Vital_Count - 1) As Long MaxVital(1 To Vitals.Vital_Count - 1) As Long ' Stats Stat(1 To Stats.Stat_Count - 1) As Byte POINTS As Long ' Worn equipment Equipment(1 To Equipment.Equipment_Count - 1) As Long ' Position Map As Long x As Byte y As Byte Dir As Byte PlayerQuest(1 To MAX_QUESTS) As PlayerQuestRec ' Spawn location Spawn As PlayerSpawnRec ' Combat Combat(1 To MAX_COMBAT) As CombatRec ' Client use only xOffset As Integer yOffset As Integer Moving As Byte Attacking As Byte AttackTimer As Long MapGetTimer As Long Step As Byte EventTimer As Long StartFlash As Long ' Guild GuildName As String GuildTag As String GuildColor As Integer 'NEW Everything below is new 'Walkthrough Walkthrough As Boolean 'Follow feature Follower As Long 'Skills Skills() As SkillRec 'Friends Friends As FriendRec 'Projectiles ProjecTile(1 To MAX_PLAYER_PROJECTILES) As ProjectileRec ' Hair Hair As Long HairTint As LongEnd Type``` Link to comment Share on other sites More sharing options...
abhi2011 Posted May 16, 2015 Share Posted May 16, 2015 The only obvious variable is **GuildName**. Do a bit more debugging and ensure that the GuildName is being sent from the server. BTW, are you sure you're doing this?: **if Player(myindex).GuildName <> "" then**… Link to comment Share on other sites More sharing options...
GalacticGlum Posted May 16, 2015 Author Share Posted May 16, 2015 @Abhi Yeah I fixed it I was doing ```If guildname = "" then'do stuffs```I had to do```If player(MyIndex).guildname = "" then'put not in guild textelse'open guild window button sound``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now