Quote:
Originally Posted by shadowjones
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
