tidus133 Posted November 19, 2012 Author Share Posted November 19, 2012 how to put a label to appear in bar eg [0/20] and then each member who enters into a map (not in the game but on a map) go to raising the bar [1/20], [2/20 ] I thank those who help or who attempt Link to comment Share on other sites More sharing options...
abhi2011 Posted November 19, 2012 Share Posted November 19, 2012 i am not sure if there is a function for it. But you can try this.```for i = 1 to player_highindexif getplayermap(index) = # thennumplayers = numplayer + 1end ifnext```This might be a bad structured code. But i suppose it will work. Link to comment Share on other sites More sharing options...
tidus133 Posted November 19, 2012 Author Share Posted November 19, 2012 **@Edit**failed'll create a new topic explaining what I want Link to comment Share on other sites More sharing options...
abhi2011 Posted November 19, 2012 Share Posted November 19, 2012 L8r thinking over it I found out that I made a grave mistake. It would only allow a predefined map. Or you will have to make a function and pass on the map and stuff.On a side note why are you making a new topic? Link to comment Share on other sites More sharing options...
tidus133 Posted November 19, 2012 Author Share Posted November 19, 2012 **the new topic will explain the system we want** Link to comment Share on other sites More sharing options...
tslusny Posted November 19, 2012 Share Posted November 19, 2012 EDIT button maybe? Link to comment Share on other sites More sharing options...
abhi2011 Posted November 19, 2012 Share Posted November 19, 2012 Might be bcoz he thought the theme of the topic changed. Link to comment Share on other sites More sharing options...
Ertzel Posted November 19, 2012 Share Posted November 19, 2012 No need to make 3 topics for one question. You can edit your first post or make a new post in the same topic explaining what you want, don't just keep making new topics.You can also edit the title of your topic by doing a full edit on the first post, so again no need to make a new topic.Now, about the actual question… Abhi's code wont work straight out as it's an example and not a full code, so you'd have to edit to to fit what you needed.To get the count of players on the map, inside the square brackets comparing to max players that could be on the map, you would do this...``` Dim playersOnMap As Byte Dim textOnMap As String For i = 1 To Player_HighIndex If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then playersOnMap = playersOnMap + 1 End If Next textOnMap = "[" & playersOnMap & "/" & MAX_PLAYERS & "]"```Then depending on what version of Eclipse your using, you would render the TextOnMap string to your screen whenever you wanted it drawn. Link to comment Share on other sites More sharing options...
abhi2011 Posted November 19, 2012 Share Posted November 19, 2012 Yep that's the correct code. But as ertzel said render it. Most probs using RenderText (Differs in diffrent engine i think) Link to comment Share on other sites More sharing options...
tidus133 Posted November 19, 2012 Author Share Posted November 19, 2012 **Thank you that is exactly what I wanted Ertzel, I like your post on * - *****Abhi if you can lock this topic then locks** Link to comment Share on other sites More sharing options...
abhi2011 Posted November 20, 2012 Share Posted November 20, 2012 I can't lock topics. If you wish to lock it try using the report function. Link to comment Share on other sites More sharing options...
Emy Posted November 20, 2012 Share Posted November 20, 2012 So what's the best way to get these values from another map (for example, see how many players there is in Map.Right)? Link to comment Share on other sites More sharing options...
abhi2011 Posted November 20, 2012 Share Posted November 20, 2012 That would mean editing the code to work for a desired map. You could try looping all maps for this. Link to comment Share on other sites More sharing options...
Ertzel Posted November 20, 2012 Share Posted November 20, 2012 > So what's the best way to get these values from another map (for example, see how many players there is in Map.Right)?You could use the same code I posted and only have to change one part.This would show you how many players are on the map south of you…``` For i = 1 To Player_HighIndex If IsPlaying(i) And GetPlayerMap(i) = Map.Down Then playersOnMap = playersOnMap + 1 End If Next textOnMap = "[" & playersOnMap & "/" & MAX_PLAYERS & "]"```Then just look at the line```If IsPlaying(i) And GetPlayerMap(i) = Map.Down Then```and change Map.Down to Map.Left, Map.Right or Map.Up depending on which map you want the count to be for. Link to comment Share on other sites More sharing options...
tidus133 Posted November 20, 2012 Author Share Posted November 20, 2012 **yes thank ertzel now paid.** Link to comment Share on other sites More sharing options...
Emy Posted November 20, 2012 Share Posted November 20, 2012 Thank you so very much Ertzel!Edit: I keep getting "0 / 70" even if there are players in Map.Right.. Can someone try this out to see if it works for you? 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