asdasd
Hey all, if join server then working Terrorits or Counter-Terrorits Team and then i transfered himself to Terrorist or Counter-Terrorits Team then not worked... :cry:
PHP Code:
|
Re: GetPlayers Bugging
i don't really know if this will work but i tried at least.
PHP Code:
|
Re: GetPlayers Bugging
Quote:
|
Re: GetPlayers Bugging
Never use get_maxplayers() or get_playersnum() in or as part of a for loop. Also, if a user is alive, they are connected (the is_user_alive() check already checks if they are connnected).
Anyways, you should use the get_players() native. This will already give you only players that are connected. Also, your function doesn't do anything and your description of what you want makes no sense. You need to explain in detail what you are wanting (something that can be understood). @Baws, wow, that is just horrible. Stop trying to help people when you have no idea of what you are doing. |
Re: GetPlayers Bugging
Quote:
|
Re: GetPlayers Bugging
I at least try to help... Sometimes you guys just ignore topics that's why.
Anyways, i'll stop sorry for confusing you kellan! |
Re: GetPlayers Bugging
Quote:
Quote:
|
Re: GetPlayers Bugging
Okay thanks man for letting me know.
|
Re: GetPlayers Bugging
PHP Code:
|
Re: GetPlayers Bugging
Regarding your first message, you need to zero your variables before using them. They are declared as static, and they never reset themselves until plugin reloads.
PHP Code:
|
| All times are GMT -4. The time now is 05:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.