View Single Post
  #9  
Old 07-10-2013, 01:00 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by callimuc View Post
seccond thing: watch your if() statements
To clarify, he's talking about stuff like this:

PHP Code:
 if (player.canjump true){ 
A single equals sign is used for assignment. A double equals sign is for comparison. GS2 tolerates misuse to some degree (it shouldn't...) which is why your script still works, but you should instead do:

PHP Code:
 if (player.canjump == true){ 
__________________
Reply With Quote