Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
If problems
« previous
next »
Print
Pages: [
1
]
Author
Topic: If problems (Read 362 times)
RarwMuffinz
June 24, 2014, 06:12:09 PM
==>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?
Ad Bot
Advertisement
Zeblote
June 24, 2014, 06:19:49 PM
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
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
If problems