 |
|
skorpion59
|
|
Tulsa, Oklahoma, USA
May 1999 time: 23:13
|
|
Anybody know the correct syntax for the SLIC For Loop? The documentation says;
code: For(i = 0; i < 10; i = i + 1) {
code
}
but this produces syntax errors. And yes, I know For & While do the same thing. I just like For better for certain things.
Don
|
|
|  |
 |
|
Dreamer
|
|
Singapore
Dec 1999 time: 05:13
|
|
All,
Just a reminder that there is a workaround to create user defined functions. By refering to the SLIC documentation which I have extracted as below :-
quote:
While SLIC does not directly support user defined functions, there is a workaround. Using the Abort() function, you can create a MessageBox object that never displays a message. So call Abort() as the first line of a MessageBox object, then write any code you want inside the object, and call that MessageBox from anywhere you'd like with
Message(0, 'NameOfYourMessageBox');
The first argument to message is a player index, but since this message isn't going to display anything, it doesn't matter what index you use.
|
|
|
|  |
 |
|
skorpion59
|
|
Tulsa, Oklahoma, USA
May 1999 time: 23:13
|
|
Sorry about that. The for..loop wasn't in the documentation. It came from Activision. I actually have a bit more SLIC documentation and related stuff than I originally thought. I am in the process of putting it all together in a cohesive document. Then as we learn what does and doesn't work and how, I will update the document. Kind of like the SLIC v1.2 real documentation we didn't get.
I will send it to our SLIC group when it is finished. If anybody else wants a copy, send me an email and let me know. My email is in my profile.
Don
|
|
|  |
All times are GMT. The time now is 05:13. Apolyton Time is 00:13. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|