Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
  #2  
Old 07-10-2013, 02:18 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
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){ 
Yeah I fixed the 'if' statements. But I still can't find a solution to my problem
__________________
No matter how much I hate graal, I'm always coming back.

smh
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.