![]() |
getstringkeys() and loadvars()
I'm not sure how to use the 2 together.
PHP Code:
PHP Code:
I'm just not sure how to get the strings in the text file. |
I'm not terribly familiar with this, but...
PHP Code:
|
I've tried that :(
Script: Function gang.getstringkeys not found at line 69 in script of *Frankie |
getstringkeys() can't but used directly on an object (obj.getstringkeys())
Use it inside a with() scope. And, for the files, use obj.getDynamicVarNames(); PHP Code:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
I might of worded it wrong, as my vocabulary isn't that big in English :p But I did put 'obj.getstringkeys()' in parenthesises :p |
If I wanted to do it with an object, I would do:
PHP Code:
|
Quote:
But yeah.. I probably read through your script to fast :) |
Quote:
PHP Code:
|
Quote:
|
Booyah!
PHP Code:
|
PHP Code:
thanks :D |
Quote:
|
makevar("this.rights-" @ temp.i) instead of this.("rights-" @ temp.i) :rolleyes:
|
Quote:
|
Quote:
|
Quote:
|
this.(STUFF HERE) should only be used with dynamic variables, and makevar("this." @ STUFF HERE)) with normal strings. Otherwise they will spontaneously behave odd from time to time, and maybe they're not supposed to do that, but I've dealt a lot with this particular issue over the last years.
|
Quote:
|
my post got cut off because Chris started a new page in case you guys didn't see :[
Quote:
it's just making me curious now that he said that. |
BOOYAH!
PHP Code:
|
Quote:
|
Quote:
|
Quote:
Having a server crash due to Stan's scripting error would be popcorn-worthy. |
Quote:
|
I don't understand what temp.file.("rights-" @ temp.i) is any different from temp.file.(@ "rights-" @ temp.i
|
Quote:
PHP Code:
PHP Code:
|
There is no difference according to code. The different is preference. :/
|
Quote:
|
Quote:
Say "Hey, you should organize it like this" rather than "Hey, this should work." |
Originally,
("test" @ "pancake") is returning a string because first part is string. And this."testpancake" wouldn't work obviously. (@ "test" @ "pancake") is returning a variable name because first part was empty. Though it seems like Stefan has compensated for that now since doing that in a variable works either way. Either that or the reason it was originally done was forgotten by me. If Stefan could tell us whats up that would be nice. |
I don't like how Stefan makes up for things that people make errors in; e.g. profiles as strings. I had no idea they were actually supposed to be objects. If he hadn't done that, I would have of course used the object.
|
Its why I want a GS3 that is more stricter and more Object-Oriented and doesn't allow any of the old GS1.
|
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
PHP Code:
|
Quote:
Not allowed to give you a URL (most retarded rule ever) so search on google for "why stackless" and pick first result. Of course if Stefan wanted to use this then he would need to be implementing some sort of security features and all that stuff. The source code is available for that. I don't think Stefan has time to do anything like that however, even if I think it would be beneficial in the long run. |
GS2 is a pretty awesome language; it's very easy to learn (compared to other languages), and you can do a lot of stuff much easier than with other languages. While the price may be speed of running the code, it's still a very good starting language, and I think it is fine for Graal. I don't see any need to change it to a completely different language, just listen to some of the suggestions (**custom objects**, catchevent, etc).
|
Quote:
|
| All times are GMT +2. The time now is 10:35 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.