![]() |
for (temp.pl : players)
Well, I am currently making an Eventy System, and a problem popped up:
As example here: PHP Code:
I want that all the players on the server's chat get changed, but only the chat of the players that are in the same level as I am gets changed. I think I am using for(tmp.pl : players) wrong or something :o Any suggestions? |
I think it's possible to do something like this:
PHP Code:
To get your script to work, you have to use this: PHP Code:
|
Oh.
I'll try that Well, it still doesn't work. PHP Code:
Hmm |
Quote:
|
Sorry, I misread. Use allplayer instead.
|
Oh.
So for (temp.pl : allplayers) I'm such an idiot xD Thank you |
Just do a check so if their level is NULL just jump over them..
PHP Code:
|
Hm
Well, what does it mean if someone's level is NULL? NULL = Nothing at all, right? So how can someone's level be NULL? |
Quote:
|
Oh I see :D
Thanks |
so what doas player.isexternal do?
|
Quote:
|
| All times are GMT +2. The time now is 09:18 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.