Mirage Source
Code Help - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Code Help (/showthread.php?tid=2221)



Code Help - timster0 - 05-10-2008

[Image: helpkl0.png]

Could someone help me to make it so it will show the party members names, and tell me how to make it so It ill show the stats in the area I highlighted? I've get everything working pretty much in the Party box, just need the names done and I'll make a Tut.

Also, whenever I try to use the "Join Party" button I get this:

[Image: help2zf5.png]


Re: Code Help - timster0 - 06-10-2008

Sorry for the double post but, could someone PLEASE help me?


Re: Code Help - JadeCurt1ss - 07-10-2008

Post your code, I'm curious how you got the party system to work.


Re: Code Help - timster0 - 07-10-2008

Thanks, when you say values, do you mean like this?

Code:
lbllv.Caption = GetPlayerLevel(Index)



Re: Code Help - timster0 - 07-10-2008

Thanks, now though i get "variable not defined". Sorry for all the questions but I'm new to programming.


Re: Code Help - timster0 - 08-10-2008

Once again, sorry to double post.

I'm trying to get it to join a party with the player's target, bit I get "compile Error:Expected Array" with this code.

Code:
Private Sub lbljoin_Click()
Dim Index As Long
Dim i As Long
Dim TempPlayer As String

TempPlayer(Index).Target = i
    Call SendJoinParty(GetPlayerName(i))
End Sub



Re: Code Help - Satharis - 08-10-2008

Code:
TempPlayer(Index).Target = i
    Call SendJoinParty(GetPlayerName(i))
End Sub

Well the problem may be more deep seated but for one you have the assignment operator backwards.

Code:
i = TempPlayer(Index).Target

The way you were doing it was telling target to be set to i, when you want it vice versa.