Raised This Month: $ Target: $400
 0% 

Run time error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-05-2017 , 01:12   Re: Run time error
Reply With Quote #1

The error says that the player is not valid, it can mean that user with Index '5' doesn't not exit or (i'm not sure at this hour because i'm very sleepy) it is not alive, as CrazY say you can add an is_user_alive() filter.

But i'm giving you an friendly advice and say that you should give-up checking for players with this method:

PHP Code:
for(new id 1id g_iMaxPlayersid++)

Better use get_players() also in that way you can also use the flag "a" and leave is_user_alive().
__________________
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 22:50.


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