Author Topic: If problems  (Read 363 times)

==>if(findclientbyname("rarw").getPlayerName() $= "blockhead" @ findclientbyname("rarw").getblid()){echo("yes");}
yes

This is getting on my nerves, other if statements work

==>if(findclientbyname("rarw").getPLayerName() $= "blockhead"){echo("yes");}
==>if("rawrmuffinz" $= "blockhead14893"){echo("yes");}

Can someone explain why the first if is returning true?

It will first compare the strings, result 0

Then it will append the number, result 014893

Then it will check if 014893 is > 0 for the if

To solve this, add () around the part that builds your string