![]() |
Static variables
Do they exist?
|
TStaticVar :|
|
Quote:
For example: PHP Code:
PHP Code:
|
C function scope static variables are pretty ****ty, at least ask for C++ static members.
|
Store them in a server. or a DBNPC if it's that important I guess.
|
Quote:
|
Just use global or object variables.
Edit: I also have to say that I think GScript should be scrapped and replaced with Lua. GScript is too inconsistent. |
You could have a DB NPC called Static Variables or something..
PHP Code:
PHP Code:
|
Quote:
I would suggest having a system weapon create a TStaticVar. |
Good idea, Inverness. I've got an idea brewing which is based of what you've said.
|
Quote:
|
Quote:
|
Quote:
|
Please stop those off-topic nonsense comments.
Static function-variables are quite interesintg in C/C++ although at the end they are just global variables. So we don't necessary require them, although it's true that it's sometimes good to have some real secured placed where you know that other scripts cannot interfere (another reason for the idea of private variables). |
Quote:
Now that we've cleared that up, please move on with your life. |
| All times are GMT +2. The time now is 02:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.