Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Could I...
#16
Does your code still look like this?
Code:
Public Sub Aida()
    SetPlayerVital(Index, HP, GetPlayerMaxVital) = 5000
End Sub

If so, look at the SetPlayerVital sub.

Code:
Sub SetPlayerVital(ByVal Index As Long, ByVal Vital As Vitals, ByVal Value As Long)

Just that part is all that really matters.

You are setting it to the Index (which would be your player number), which vital do you want to set, then the value you want to set it to. Make sense?

So if you want to set your vital hp to 5000 then your code should look like this.

Code:
Public Sub Aida()
    Call SetPlayerVital(Index, Vitals.HP, 5000)
End Sub

I am not exactly sure what you are trying to do?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)