Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Simple coding help


bintin
 Share

Recommended Posts

I'm slowly learning VB6 and i'd like if it someone could guide me in the right direction, how would I make a picture box visible when someone enters a certain map or joins the game for the first time? ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

Thank you.
Link to comment
Share on other sites

> Yeah I know how to do that it's just getting it to only become visible in a certain map or when someone first joins the game. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

Ah! Missed the "for the first time" bit.

To make it visible when you're in a certain map, put in the sub which detects keypresses and check to see if the player is on a specific map.

```

If Player(myindex).map = MapNumberHere then

Picturebox.visible = true

end if

```
Link to comment
Share on other sites

> Right, i have a question of a related manner.
>
> If I have a gui open and have buttons that open frames inside this how do i bring these frames to the front so i can visually edit them?
>
> I am also new to Vb6

Start reading up on everything with the syntax…....[http://msdn.microsoft.com/en-us/library/aa267180%28v=vs.60%29.aspx](http://msdn.microsoft.com/en-us/library/aa267180%28v=vs.60%29.aspx)
Link to comment
Share on other sites

If its still the question with show an pic one time at the first login make an player variable

Player(index).FirstLogin = 0

```

If Player(Index).Firstlog = 0 then

picWelcome.visible = true

End If

```

That will make the pic visible if youre logging in -> If you click OK or something on it

```

picWelcome.visible = false

Player(index).FirstLogin = 1

```
Link to comment
Share on other sites

> ZOrder only changes the order of the frames in game: not in vb6…
>
> So just to put it straight,
>
> Im trying to edit the guild admin interface for the options part but when I load the frmGuildAdmin it just shows the users part, so how do I edit the options part?

*facepalm, u should read more often for the sake of not throwing ppl off.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...