| Mirage Source http://web.miragesource.net/forums/ |
|
| Player Stats problem. http://web.miragesource.net/forums/viewtopic.php?f=201&t=4811 |
Page 1 of 1 |
| Author: | DarkX [ Sun Nov 30, 2008 7:16 pm ] |
| Post subject: | Re: Player Stats problem. |
I am not anywhere near certain on this, but wouldn't it be "I = 1 to max_Playersonline" or something like that. And do Code: sub dblClick_frmServer.lstOnline something like that, maybe. Can't remember the actual code for double click off the top of my head.
picstats.visible = true Call send(whatever stats you have) end sub |
|
| Author: | addy [ Sun Nov 30, 2008 7:32 pm ] |
| Post subject: | Re: Player Stats problem. |
Im not exactly sure what your saying. So on the frmServer part id make it I think by Send(here) you mean Code: sub dblClick_frmServer.lstOnline picstats.visible = true Call SendData(whatever stats you have) end sub Since im pretty new at the programming i dont know that much about it. I dont get about the SendData part. All i know is theres got to be like some script or word that like can tell you which part is selected in a list. |
|
| Author: | William [ Sun Nov 30, 2008 9:26 pm ] |
| Post subject: | Re: Player Stats problem. |
Try changing: Code: i = frmServer.lstOnline.Selected To: Code: i = frmServer.lstOnline.ListIndex If the listindex now is the real index for the player this will work. But if its not; you need to take the list text from the line you doubled click on and use: FindPlayer() to find the index. |
|
| Author: | addy [ Sun Nov 30, 2008 9:45 pm ] |
| Post subject: | Re: Player Stats problem. |
Okay william thanks. I put that in and that problem went away but what happens now is that the Function highlights up. Code: Function GetPlayerLogin(ByVal Index As Long) As String GetPlayerLogin = Trim(Player(Index).Login) End Function I think the problem is that it doesnt know what i is still. So should i just get rid of I and maybe just find a different way or what? I dont get by what you mean either with the FindPlayer() |
|
| Author: | Matt [ Sun Nov 30, 2008 9:51 pm ] |
| Post subject: | Re: Player Stats problem. |
FindPlayer() will give you the player's index. |
|
| Author: | addy [ Sun Nov 30, 2008 10:09 pm ] |
| Post subject: | Re: Player Stats problem. |
Okay thanks i got it working. Thanks everyone for the help. |
|
| Author: | Matt [ Sun Nov 30, 2008 10:54 pm ] |
| Post subject: | Re: Player Stats problem. |
Np. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|