View Single Post
  #15  
Old 03-01-2002, 10:23 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
NPC Code:

//#CLIENTSIDE
if (playerenters || timeout) {
if (onwater(playerx+1.5,playery+2)) {this.wcount += 0.05;}
else {this.wcount = 0;}
showimg 1000,@@c@Water Count #v(this.wcount)/15,screenwidth-75,screenheight-25;
if (this.wcount>15) {playerhearts = 0;}
timeout = 0.05;
}



I ono...lol...what no if clause specified means is that you have an else somewhere, but no original if. To fix that make sure if you don't have curly brackets ({}) around an if phrase than make sure that there is only one command, if you have this:
NPC Code:

// this works:
if (playerenters) message hi;
else message;
//this doesn't, it will give you a no if clause specified error:
if (playerenters) message hi;
setplayerprop #c,hi;
else message;
setplayerprop #c,;



Understand?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it