16-09-2008, 02:50 AM
Does your code still look like this?
If so, look at the SetPlayerVital sub.
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.
I am not exactly sure what you are trying to do?
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?