Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-21-2008, 02:06 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
'var', what's up with 'var'?

lets see..

PHP Code:
for(temp.var : {"rawr,rawr,rawr"}) {
  echo(var);
}
/*
error: unexpected token: var at line 2: echo(var);
error: unexpected token: ) at line 2: echo(var);
*/ 
Now, what's wrong with that? It was working perfectly before

Using var can't be used anywhere any longer?
And is now being used as:
PHP Code:
var foo 2;
echo(
foo); 
similar to javascript? hmm?

What's with the sudden use of var? I now have to rescript all scripts on Symphonia just because the use the word VAR...

PHP Code:
function test(var) {
  echo(var);
}
/*
error: unexpected symbol var at line 1: function test(var) {
*/ 

So, yet again I have to ask, whats with the sudden use of var?
__________________

Last edited by Chompy; 03-21-2008 at 04:48 PM..
Reply With Quote
 


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 10:54 PM.


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