Raised This Month: $ Target: $400
 0% 

pev_frags crashing after update, either my code is bad


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 08-18-2013 , 15:47   Re: pev_frags crashing after update, either my code is bad
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Nothing to do with game update, your code is bad.

The loop way shouldn't be used, because with those kind of loops, you need to check if each players is connected, this is the thing you don't check and when you try to retrieve pdata, it generates errors or crashes.

Anyway, use get_players, so you can retrieve a list of connected players, and if you use filters, you can retrieve all TERRORIST at once.
WRONG - theres nothing todo with loop, my method - get_maxplayers is more efficient than get_players since i cached all events for each index in right events also get_players sometimes returning false values, this only small part of the code, i am using like 9 loops per all code, have no crashes, rock stable 24/7.

Last edited by seriousspot; 08-18-2013 at 15:48.
seriousspot is offline
 



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 15:48.


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