The Dink Network

Reply to Re: my stupid first item, HELP

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:
 
 
August 23rd 2004, 10:01 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
First of all, change

int &bw = &base_walk
int &ba = &base_attack
int &bi = &base_idle
int &bd = &base_death

into

&bw = sp_base_walk(1, -1);
&ba = sp_base_attack(1, -1);
&bi = sp_base_idle(1, -1);
&bd = sp_base_death(1, -1);

A -1 for a value in these cases means "return value". Also I would int the &bw, &ba, &bi and &bd in the arm proc. If used multiple times, it won't take up variable space...

Then the second if (&form == 0) should be changed into if (&form == 1)
and just before the ending "}" of an if-statement, place "return;" (without quotes).

Also, the last &form = 1 should be changed into &form = 0;

Then, place a semicolon ";" after each non-if-non-void line if there's non already. (Also not after a { or }, but I guess that makes sense...)