Mirage Source
GetPlayerLevel (not working?) - 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: GetPlayerLevel (not working?) (/showthread.php?tid=2451)



GetPlayerLevel (not working?) - Blodyavenger - 24-12-2008

I'm trying to do character label where stats are displayed and I can make stats like strength and HP displayed but GetPlayerLevel(MyIndex) is simply not working. It returns value 0... I don't have a single idea what to do. I've searched around the forums if anyone has the same problems but nothing....Thanks for answers!

Current code:
Code:
Private Sub picStats_Click()
    'Call SendData(CGetStats & END_CHAR)
    picCharacter.Visible = True
    chrLevel.Caption = "Level: " & GetPlayerLevel(MyIndex)
    chrHealth.Caption = "Health: " & GetPlayerMaxVital(MyIndex, Vitals.HP)
End Sub

Output = Level: 0


Re: GetPlayerLevel (not working?) - Matt - 24-12-2008

You need to send a packet to the server and have the server send the level in a packet.


Re: GetPlayerLevel (not working?) - Blodyavenger - 24-12-2008

I thought it's already working that like:

chrHealth.Caption = "Health: " & GetPlayerMaxVital(MyIndex, Vitals.HP)