Page 1 of 1

I finally get it xD (Voids and stuff)

PostPosted: Sun Jan 23, 2011 3:33 am
by Hblade
After working on Level 2 of Silver the hedgehog, I come to notice something. Making voids really DOES save you a lot of time O____o DUDE thanks to those I gained so much time on the game xD

Just thought I'd share that xD

MAKE DA VOIDS XD

Re: I finally get it xD (Voids and stuff)

PostPosted: Sun Jan 23, 2011 4:59 am
by Game A Gogo
image functions that returns something:
Code: Select all
variable=function();

Code: Select all
int/double/float/char/char* function()
{
    //code
    return SOMETHING
}

note: return must be the LAST thing the function runs, and it returns whatever you choose it to be, if you want an int, than you'd do int function(){return 10;}, if you want a string, you'd do char* function(){char* STRING;strcpy(STRING,"Rawr"); return STRING;}