![]() |
TStaticVar Output Methods
With a little help from DrakilorP2P I created just a script that I'm actually proud of (NOT A SCRIPTER).
Was curious if there was any other easier methods or ways you could handle it? PHP Code:
|
Erm, I know you're excited about your first script but it's just not Code Gallery material.
- It's explicit to your scenario - Improper Indentation / Random white-spacing - Only uses events (for this kind of script the purpose is to provide reusable functions) - There's no comments Also, player.chat = ":load" should be player.chat == ":load" TStaticVar + loadvars/savevars Example: PHP Code:
|
Last time I checked the Code Gallery was for completed scripts.
But if it's a big deal we can move it (mods hint hint) Not trying to be a smartass about this... What's the difference between: player.chat == and player.chat = |
Quote:
" = " is for assigning |
Yeah it is for complete scripts but they should have some value to them.
Edit: Cloven's post for = explanation. |
I noticed an error that I didn't want to happen..
When I load all of the variables from the .txt file, it only loads the last var entered, any clue why? =EDIT= Can a mod please move this thread out of the Code Gallery? |
Quote:
PHP Code:
|
Thanks Chris, I appreciate it..
Even though it's a huge step from my other script, still trying to figure out all the stuff you did. |
| All times are GMT +2. The time now is 09:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.