Welcome Guest [Log In] [Register]
Welkom bij Gamemakerplus. We hopen dat je het naar je zin hebt!


Momenteel ben je een gast, als gast kan je geen topic's plaatsen of op reacties reageren. Registeren is gratis en maakt dit wel mogelijk.


Klik hier om je te registreren


Als je al lid ben kun je je aanmelden.

Username:   Password:
Add Reply
Script: argumenten; Argumenten Scripten
Topic Started: Dec 30 2009, 04:55 PM (74 Views)
StefannafetS

Ik heb een vraagje. Hoe kan ik in een script kijken of er een argument is ingevuld of niet???
Wat ik heb is:
Code:
 
{
/********************************************************************
argument[0] = Kop (Object)
argument[1] = Kop blauw (Sprite)
argument[2] = Lijst 1 (Object)
argument[3] = Lijst 2 (Object)
argument[4] = Lijst 3 (Object)
********************************************************************/
if(collision_point(mouse_x, mouse_y, argument[0], 0, 0))//kijken of de muis de kop raakt zoja voer het volgende uit.
{
sprite_index=argument[1];
if (mouse_check_button_pressed(mb_left))//kijken of de linker muisknop is ingedrukt zoja voer het volgende uit.
{
instance_create(x,19,argument[2])//maak een lijst
instance_create(x,38,argument[3])//maak een lijst
instance_create(x,57,argument[4])//maak een lijst
}
}
}

ik wil als argument 2 er is dat het word uitgevoerd (dit ook bij 3 en 4)
Kestgamestudio.tk Voor al uw Games
Mail naar: stefan.kestgamestudio@gmail.com
Offline Profile Quote Post Goto Top
 
Honored
Administrator
Ten eerste kan je argumenten met argument# doen ( ik weet niet of jou methode ook werkt)
Moet je zeggen tegen de gebruiker dat hij voor iets wat hij niet wil false moet invoeren.
En dan voor je script:

if argument2 != false
{
instance_create(x,19,argument[2])//maak een lijst
}
Edited by Honored, Dec 30 2009, 04:59 PM.
Offline Profile Quote Post Goto Top
 
StefannafetS

Honored
Dec 30 2009, 04:59 PM
Ten eerste kan je argumenten met argument# doen ( ik weet niet of jou methode ook werkt)
Moet je zeggen tegen de gebruiker dat hij voor iets wat hij niet wil false moet invoeren.
En dan voor je script:

if argument2 != false
{
instance_create(x,19,argument[2])//maak een lijst
}
bedankt en mijn methode werkt ook. (ik snap niet wat jij bedoelt met # miss kun je dat uitleggen)
Kestgamestudio.tk Voor al uw Games
Mail naar: stefan.kestgamestudio@gmail.com
Offline Profile Quote Post Goto Top
 
Honored
Administrator
Dat je argument0
argument1
argument2

Ook kunt gebruiken kijk maar naar mijn script in Scripts
Offline Profile Quote Post Goto Top
 
Cyril

Recent links: too much testosterone contains notices on too much testosterone. dallas elimite tells about dallas elimite. naprosyn is devoted to naproxen 500. article is relevant to codeine phosphate. valacyclovir dosage tells about valacyclovir dosage. lynchburg fioricet is about lynchburg fioricet. pancreatitis is about pancreatitis. buy cefuroxime axetil site contains information on buy cefuroxime axetil. percocet is relevant to cheap drugs. gaithersburg gabapentin is devoted to gaithersburg gabapentin. generic lamictal vs brand tells about generic lamictal vs brand.
Offline Profile Quote Post Goto Top
 
Cyril

Some new pharmacy links: lowest price is devoted to lowest price. oxycodone overdose is about oxycodone overdose. clopidogrel contains information on clopidogrel bisulfate 75mg. levothyroxine sodium is devoted to alameda levothyroxine sodium. testosterone and hair loss is focused on testosterone and hair loss. aristocort tells about aurora aristocort. tramadol pricing contains information on tramadol pricing.
Offline Profile Quote Post Goto Top
 
Cyril

Some pharmacy links: flovent is about flovent vs asmanex. clomid challenge blog contains information on clomid challenge. savannah online pharmacy forum is about savannah online pharmacy. generic esomeprazole contains information on generic esomeprazole. nexium contains information on nexium get high. tamoxifen study page contains notices on tamoxifen study. neurontin mechanism of action is devoted to neurontin mechanism of action. didrex is focused on cheapest didrex. overseas pharmacy is about purchasing pharmacy. fioricet contains information on fioricet dosage. sibutramine contains information on sibutramine. will skelaxin get you high forum contains information on will skelaxin get you high. worcester tussionex contains notices on worcester tussionex.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
DealsFor.me - The best sales, coupons, and discounts for you
« Previous Topic · Problemen · Next Topic »
Add Reply