Boolean not changing
why is this boolean not changing on new round?
how to fix it?
Spoiler
|
Re: Boolean not changing
There is no id passed from HLTV event.
|
Re: Boolean not changing
Because the NewRound Event dont storage ID of Player
You must create id like here : Code:
/* Plugin generated by AMXX-Studio */ |
Re: Boolean not changing
thanks alot
|
Re: Boolean not changing
No, not like he's showing you. This is the proper way:
PHP Code:
|
Re: Boolean not changing
Quote:
what's wrong with the way Lord showed? |
Re: Boolean not changing
Quote:
|
Re: Boolean not changing
Let me tell you in a different way ....
'0' is the index of the server... Players have an id from '1' to '32' ( depends of the connected players of the server ... example if they are 16 players connected they will be 16 indexes on the server, from 1 to 16 ) . get_players() take all the indexes in an array and insert them ... if you use get_players() you will get only the connected and existing indexes ( you can also separate them using the flags, example : get the indexes only of alive players, only of spectators .. etc ) ... if you will do a LOOp from 1 to 32 will you teach each index from 1 to 32 and now think if they are only 5 players ... the loop will continue to touch it. .. even if they are not existing ... and that's will throw an error to your server. |
Re: Boolean not changing
There are a lot of posts about that question here. Will we keep saying the same thing everytime? People should see the power of the google search before post/ask something.
|
Re: Boolean not changing
Quote:
|
| All times are GMT -4. The time now is 18:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.