
07-06-2001, 08:08 PM
|
|
somebody to love
|
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
|
|
Re: Re: Sleeping...
Quote:
Originally posted by grim_squeaker_x
The second ( in your strequals check should be a , plus &&|| = &&0|| which means the script can never do anything.
Like this:
NPC Code:
if (playerenters||timeout) {
if (strequals(#m,sleep)||playersprite=38) showimg sleeping,emoticon_Zzz_stay.mng,playerx,player-2;
else hideimg sleeping;
timeout=0.05;
}
Although this would be the same as giving it an index of 0; since sleeping is a variable without a defined value it will default to 0.
|
Ok, it works now, thanks |
__________________
the sky is falling
|
|
|
|