Hi,
I was just trying to write my first own plugin for HB, but I'm a little bit stuck right now.
What I want to do is to get the players XP. So I figuered I should do something like this:
I do get the following error:
I know it is probably a stupid error, but right now I'm too stupid to find it :/
I'll appreciate any help.
Glookie1
Edit: Never mind, I just found my mistake >.< It was a really stupid one. I forgot to add the , 1 at the end.
Lua.GetReturnVal<int>("return UnitXPMax(\"player\")", 1);
Edit2: Hmm seems that this doesn't work as expected - it just returns 0. Maybe someone else has another idea how to acomplish this?
I was just trying to write my first own plugin for HB, but I'm a little bit stuck right now.
What I want to do is to get the players XP. So I figuered I should do something like this:
Code:
get
{
return Lua.GetReturnVal<int>("return UnitXPMax(\"player\")");
}
I do get the following error:
Code:
Das Plugin von C:\Users\***\Honorbuddy\HB\Plugins\ETALUp.cs konnte nicht erstellt werden! Erstellungsfehler:
Datei: ETALUp.cs Pfad: 67 Fehler: Keine ?berladung f?r die GetReturnVal-Methode nimmt 1 Argumente an.
I know it is probably a stupid error, but right now I'm too stupid to find it :/
I'll appreciate any help.
Glookie1
Edit: Never mind, I just found my mistake >.< It was a really stupid one. I forgot to add the , 1 at the end.
Lua.GetReturnVal<int>("return UnitXPMax(\"player\")", 1);
Edit2: Hmm seems that this doesn't work as expected - it just returns 0. Maybe someone else has another idea how to acomplish this?
Last edited:






