View Single Post
  #2  
Old 04-10-2007, 10:04 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by shadowjones View Post
No matter what I do, whenever I type in ANY text at all and it will say whats in the else command (ex: I say jswkdng I get msg saying, "text part 2")

I'm trying to use this to make seperate messages when you have already talked to him.

NPC Code:
//CLIENTSIDE
if (clientr.helloworld=1 &&(playertouchsme))
say2 Text part 1;
else
say2 text part 2;

if (playerchats&&strequals(#c,Text part 3)) {
say2 Text part 4;
clientr.helloworld=1;
}

First of all, You might want to do:

PHP Code:
//#CLIENTSIDE
if (playertouchsme)
{
if (
clientr.helloworld == 1)
{
say Whatever 1;
} else {
say Whatever 2;
}

And also, Use == for comparisons. Not =.

PHP Code:
=                     Assignment
==                    Comparison 

Lastly:
PHP Code:
//#CLIENTSIDE
not
//CLIENTSIDE 
__________________
What signature? I see no signature?
Reply With Quote