The Dink Network

Reply to Re: Custom procedures, return, script_used() etc.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 29th 2008, 03:08 AM
fairy.gif
Someone
Peasant He/Him Australia
 
Arguments are the stuff between the parentheses when you call a function, and each argument is separated by commas. So for say("baa",1); the first argument is "baa" and the second argument is 1.

I have no idea why you would want to pass frivolous arguments to create_sprite. At best it won't have any effect.

external() and custom global functions are the only function in DinkC that doesn't always require a certain number of arguments (e.g. create_sprite requires 5 arguments). External can take 2-10 arguments and custom globals 0-8. Note that external("bomb","make_bomb") is effectively the same as external("bomb","make_bomb",0,0,0,0,0,0,0,0);