| Mirage Source http://www.miragesource.net/forums/ |
|
| Easier mapping http://www.miragesource.net/forums/viewtopic.php?f=201&t=5380 |
Page 1 of 1 |
| Author: | MirWraith [ Tue Apr 07, 2009 4:53 am ] |
| Post subject: | Easier mapping |
Hi all, I'll first explain how I'm wanting to setup my maps because it'll be easier for you understand what I'm wanting to do. Ok, I've set aside 4096 maps, which converts to a 64 x 64 grid, for use as my outside areas. Anyway, as you can imagine when setting up a map's left, right, up and down partners its going to be a bitch doing the maths. So what I've done is added check boxes in frmMapproperties next to each of the partners text boxes, when ticked I'm wanting them to drag the number of the map the admin is currently on and either +/- 64 for the up and down partners and +/- 1 for the left and right partners, then place the number in the corresponding box. The code I've tried to use is: - Private Sub Check4_Click() Dim index As Long If Check4.Value = 1 Then txtRight = GetPlayerMap(index).Num + 1 End If End Sub The error I'm getting is : Compile Error: Invalid qualifier and it highlights GetPlayerMap I'm tired after working yet another 16 hour night shift and so my brain just aint working, anyone fancy lending a hand please. Thanks in advance. |
|
| Author: | Jacob [ Wed Apr 08, 2009 3:20 am ] |
| Post subject: | Re: Easier mapping |
Try using "MyIndex" if it's client side. |
|
| Author: | Matt [ Wed Apr 08, 2009 3:25 am ] |
| Post subject: | Re: Easier mapping |
Code: Private Sub Check4_Click() Dim index As Long If Check4.Value = 1 Then txtRight = GetPlayerMap(MyIndex) + 1 End If End Sub Also think you can do something like: Code: Private Sub Check4_Click() Dim index As Long If Check4.Value = 1 Then txtRight = Map.num + 1 End If End Sub If it's client side. |
|
| Author: | MirWraith [ Wed Apr 08, 2009 4:30 am ] |
| Post subject: | Re: Easier mapping |
LOL son of a bitch, I probably tried everything but (MyIndex), its all working beautifully now, and its speeded up the map making loads. Cheers |
|
| Author: | Matt [ Wed Apr 08, 2009 1:43 pm ] |
| Post subject: | Re: Easier mapping |
MirWraith wrote: LOL son of a bitch, I probably tried everything but (MyIndex), its all working beautifully now, and its speeded up the map making loads. Cheers Np man. Any other issues, just post them. We'll help. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|