Raised This Month: $ Target: $400
 0% 

set model + prevent crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
toazron1
Senior Member
Join Date: Oct 2006
Old 07-13-2007 , 10:53   Re: set model + prevent crash
Reply With Quote #1

People are getting disconnected every .2 seconds because thats what your loop interval is set at.

Code:
if (containi(szModel, "mc") ==-1 && containi(szModel, "freeman") ==-1 ){
needs to be || not && because the model is either MC or FREEMAN, it can't be both.

You also included the wrong function with your program (the set_model2) so the problem could lay in there.
I'm not sure why you are using a set_task loop to loop though all the players rather then a for loop, which would be faster.
__________________
toazron1 is offline
Send a message via AIM to toazron1
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 21:31.


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