Function

Fragen zu "Adventure Game Studio"? Hier rein!
Antworten
Gast

Function

Beitrag von Gast »

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
a-v-o
Süßwasserpirat
Süßwasserpirat
Beiträge: 258
Registriert: 22.09.2002, 21:28
Kontaktdaten:

Re:Function

Beitrag von a-v-o »

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.
Gast

Re:Function

Beitrag von Gast »

Sorry, aber das is ein Fehler. ICh poste es nur einmal und es vervielfältigt sich von alleine... >:(
Antworten