The Dink Network

Reply to Re: Global Variables question

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:
 
 
April 19th 2007, 10:03 AM
duck.gif
wesley
Peasant He/Him United States
 
I suggest:

//Code for the 'other guy'

...
void talk(void)
{
if (&pussle == 1)
{
&pussle = 2;
}
...
}

This way if you continue talking to the first guy the &pussle var doesn't keep incrementing. In some cases, it won't matter, but it's always nice to know the values of your globals.