Also ich habe in den Scriptheader
"import function GiveMoney (int amount);"
eingegeben und ins Globalscript die Function
#define MONEY_GI 1
#define MONEY_GUI 0
#define MONEY_LABEL 0
function GiveMoney (int amount)
{
SetGlobalInt (GI_MONEY, GetGlobalInt (GI_MONEY) + amount);
string labeltext;
StrFormat (labeltext, "%d", GetGlobalInt (GI_MONEY));
SetLabelText (MONEY_GUI, MONEY_LABEL, labeltext);
}
Und Ags sagt: "Undefined MONEY_GI";
Wie kann ich das korrigieren?
Dank im Voraus
Function
-
- Süßwasserpirat
- Beiträge: 258
- Registriert: 22.09.2002, 21:28
- Kontaktdaten:
Re:Function
Antwort findest du im Thema
http://www.adventure-treff.de/forum/ind ... eadid=1786
Und es bringt nichts, das Gleiche mehrmals oder in mehreren Themen zu posten.
http://www.adventure-treff.de/forum/ind ... eadid=1786
Und es bringt nichts, das Gleiche mehrmals oder in mehreren Themen zu posten.
Re:Function
Sorry, aber das is ein Fehler. ICh poste es nur einmal und es vervielfältigt sich von alleine... >:(