Raised This Month: $ Target: $400
 0% 

Boolean not changing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-17-2017 , 15:20   Re: Boolean not changing
Reply With Quote #1

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.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode