Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Cash Geld! Hilfe #171905
12/09/07 07:55
12/09/07 07:55
Joined: Nov 2007
Posts: 35
V
Vestax Offline OP
Newbie
Vestax  Offline OP
Newbie
V

Joined: Nov 2007
Posts: 35
Hallo zusammen!ich versuche gerade das TUT AUM 9---cash
nachzumachen!!!

aber wen ich das script speicher und als
include <cash.wdl> aufruf und das spiel lade!!!

dann erscheint gleich das geld obwohl ich es noch nichtmal aufgesammelt habe!




// don't forget to include <cash.wdl>;

// attach action get_cash to the models that are supposed to get you some cash
// skill1 = amount of cash (default = 30)

// attach action buy_items to the models that can be bought
// skill1 = object's cost (0 = free)

//////////////////////////////////////////////

font arial_font = <arial16.pcx>, 21, 24;

//////////////////////////////////////////////

var cash = 0;

/////////////////////////////////////////////

bmap cash_map = <cashpan.pcx>;

/////////////////////////////////////////////

function add_money();
function buy_me();

/////////////////////////////////////////////

sound gotcash_snd = <gotcash.wav>;
sound spentcash_snd = <spntcash.wav>;

/////////////////////////////////////////////

panel cash_pan
{
bmap = cash_map;
layer = 20;
pos_x = 0;
pos_y = 0;
digits = 40, 22, 4, arial_font, 1, cash;
flags = transparent, overlay, refresh, d3d;
}

action get_cash
{
my.enable_impact = on;
my.event = add_money;
}

function add_money()
{
wait (1);
if (my.skill1 == 0) {my.skill1 = 20;} // default = 20 bucks
if (cash == 0) {cash_pan.visible = on;}
cash += my.skill1;
snd_play (gotcash_snd, 70, 0);
ent_remove (me);
}

/////////////////////////////////////////////////

action buy_items
{
my.enable_click = on;
my.event = buy_me;
}

function buy_me()
{
wait (1);
if (event_type != event_click || cash < my.skill1) {return;}
cash -= my.skill1;
snd_play (spentcash_snd, 70, 0);
ent_remove (me);
}

Re: Cash Geld! Hilfe [Re: Vestax] #171906
12/09/07 15:16
12/09/07 15:16
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
hmm..als allllller erstes solltest du dir gedanken machen, wie gut man das wohl lesen kann |: / => setzt den code in die bb - code tags [ code ] und [ /code ]

Dann guck ich mal wo das Problem liegt

Re: Cash Geld! Hilfe [Re: Vestax] #171907
12/10/07 11:56
12/10/07 11:56
Joined: Nov 2007
Posts: 35
V
Vestax Offline OP
Newbie
Vestax  Offline OP
Newbie
V

Joined: Nov 2007
Posts: 35

Re: Cash Geld! Hilfe [Re: Vestax] #171908
12/13/07 14:44
12/13/07 14:44
Joined: Mar 2007
Posts: 99
Germany
zSteam Offline
Junior Member
zSteam  Offline
Junior Member

Joined: Mar 2007
Posts: 99
Germany
könntest du es bitte unterlassen überall doppelposts zu machen und dann auch noch selbstklärende fragen zu stellen? du solltest nicht immer nur alles von anderen verlangen, denn wenn du selbst mal versucht c-script zu lernen wirst du merken, dass die scripts sehr einfach sind und du kannst dein porblem ganz schnell lösen ... außerdem steht alles im aum beschrieben

ach und ich habe dir die frage in den anderen post schon beantwortet


=> www.alrik-online.de
A7 Commercial

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1