Staker Posted September 20, 2008 Author Share Posted September 20, 2008 I add this code into the frmmirageIf Player = male thenimgmale.visable = Trueimgfemale.visable = falseend ifIf Player = Female thenimgfemale.visable = Trueimgmale.visable = Falseend ifBut it error . I think someone can fix this code . Help pls !! Link to comment Share on other sites More sharing options...
Lenton Posted September 20, 2008 Share Posted September 20, 2008 If GetPlayerGender = "Male"ImgMale.Visible = TrueElseImgFemale.Visible = TrueEnd IfMake sure you make both of the images invisible by the properties panel. Link to comment Share on other sites More sharing options...
Staker Posted September 20, 2008 Author Share Posted September 20, 2008 Thank you very much ^^ Link to comment Share on other sites More sharing options...
Staker Posted September 20, 2008 Author Share Posted September 20, 2008 Hey this code is errorIf GetPlayerGender = "Male" Link to comment Share on other sites More sharing options...
Lenton Posted September 20, 2008 Share Posted September 20, 2008 Try this…If GetPlayerGender(MyIndex) = "Male"ImgMale.Visible = TrueElseImgFemale.Visible = TrueEnd If Link to comment Share on other sites More sharing options...
Staker Posted September 21, 2008 Author Share Posted September 21, 2008 Where to put this code on frmMirage ? I think add code into sub form load but it error. Link to comment Share on other sites More sharing options...
Braydo25 Posted September 21, 2008 Share Posted September 21, 2008 i dont think Male should be "Male" i think male is a variable assigned with a value.. Link to comment Share on other sites More sharing options...
Staker Posted September 21, 2008 Author Share Posted September 21, 2008 @Devil:> i dont think Male should be "Male" i think male is a variable assigned with a value..Male = ??? How to fix this code Link to comment Share on other sites More sharing options...
Braydo25 Posted September 21, 2008 Share Posted September 21, 2008 If GetPlayerGender(index) = MaleImgMale.Visible = TrueElseImgFemale.Visible = TrueEnd Ifyou would have to put this in the right spot for it to work, maybe have this piece of code execute when the user types /gender or something like that, or maybe click a button. 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