The Dink Network

Reply to Dink can't calculate

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 3rd 2004, 12:15 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
I have this script (ok, ok, partly copied from FIAT):

void main( void )
{
int &myb = create_sprite(317, 426, 0, 182, 1);
int &mya = create_sprite(334, 426, 0, 182, 1);
int &hun;
int &ten;
int &one;
int &crud;
int &oldlife;
loop:
wait(10);
if (&life != &oldlife)
{
sp_kill(&myb, 1);
sp_kill(&mya, 1);
sp_pseq(&current_sprite, 182);
&hun = &life;
&hun / 100;
&ten = &life;
say_stop("Ten: &ten",1);
&crud = &hun;
say_stop("Crud1: &crud",1);
&crud * 100;
say_stop("Crud2: &crud : Ten = &ten",1);
&ten -= &crud;
say_stop("Ten: &ten",1);
&ten / 10;
say_stop("&ten",1);
&one = &life;
&crud = &hun;
&crud * 100;
&one -= &crud;
&crud = &ten;
&crud * 10;
&one -= &crud;
say_stop("&one",1);
...etc...

in the beginning of it &life = 10 &oldlife = 0.
When I play the mod, I see dink say this:
"Ten: 10"
"Crud1: 0"
"Crud2: 0 : Ten = 10"
"Ten: 0"
"0"
"-10"

Now, am I getting mad, or is 10-0 really 0?