![]() |
Help
Can somebody help me with this why is its hiding everything accept the names of the players?
PHP Code:
|
Showstats
PHP Code:
PHP Code:
|
I recommend doing it inside a //onPlayerEnters()// to make sure that it stays that way.
|
So just add...
PHP Code:
...to the bottom. |
Quote:
HTML Code:
function onCreated() |
I don't see how there's a difference, both functions are called regardless.
|
Yeah but onCreated() is only called once. onPlayerEnters is called every time a player enters the level so it gets called more.
|
Quote:
Doesn't matter though, since when you enter it will call onCreated if you make it call onCreated when you enter either way, thus allowing you to set it up in the onCreated instead of the onPlayerEnters. |
If you don't understand, that's your own fault. We're correct.
|
Quote:
If you can't explain it, then it's the same as not understanding. |
Quote:
As far as I can see it, "JkWhoSaysNi" explained it. ;) |
Quote:
Ok, consider: a: PHP Code:
PHP Code:
Now, if a player enters the level with a: onPlayerEnters() gets called and onCreated() gets called then the rest of the script gets executed b: onPlayerEnters() gets called and the rest of the script executes. Since onPlayerEnters will get called more than onCreated() b is the most efficient. I don't think i can explain it any clearer than that. |
You're both wrong. You should only need to call showstats once. If it doesn't stay as you set it, there's another script interfering.
And it's good practice to not call onCreated(). |
Quote:
|
Quote:
|
All times are GMT +2. The time now is 03:21 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.