Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-14-2005, 06:58 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Gscript2 and comments

I do not know if /* */ style comments are supposed to work with Gscript2 enabled, but they do not correctly. Or even if it is just because I am using the comments twice, I am not sure. I do not believe I have ever had a problem with this before.

Quote:
Script of weapon -Rudora-System added/updated.
Script compiler output for -Rudora-System:
error: unexpected symbol && at line 302: }/* elseif !strequals(#s(serverr.season),summer) /*&& isonmap*/ && strequals(#s(clientr.setup-weather),off)) {
Any ideas, or if this could be fixed?
__________________
Skyld
Reply With Quote
  #2  
Old 02-14-2005, 07:08 PM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
Quote:
Originally Posted by Skyld
I do not know if /* */ style comments are supposed to work with Gscript2 enabled, but they do not correctly. Or even if it is just because I am using the comments twice, I am not sure. I do not believe I have ever had a problem with this before.



Any ideas, or if this could be fixed?
I think they cannot be used inside eachother so if you change /*&& isonmap*/ to '&& isonmap' it should be fine

The one after isonmap*/ is probably stopping both
Reply With Quote
  #3  
Old 02-14-2005, 07:10 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I thought this too, but I did not realise that they did conflict.
__________________
Skyld
Reply With Quote
  #4  
Old 02-14-2005, 08:21 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
The text between the first /* until the first */ should be considered a comma, no...?
Reply With Quote
  #5  
Old 02-14-2005, 09:04 PM
Ibonic Ibonic is offline
unsoundness
Ibonic's Avatar
Join Date: Sep 2002
Location: Long Island <3
Posts: 783
Ibonic will become famous soon enough
Yes, anything between /* and */ is considered a comment, so your second /* should have no affect.
Reply With Quote
  #6  
Old 02-14-2005, 09:14 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Obviously, it just seems to parse up to the first one.
I guess I just never noticed it before. :P
__________________
Skyld
Reply With Quote
  #7  
Old 02-15-2005, 01:09 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
In come C++ compilers you can have multiple nesting of comments, like /* /* /* */ */ */, which is required for making it possible to comment out includes and such stuff, but in Graal it is different
Reply With Quote
Reply


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 06:16 AM.


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