Raised This Month: $ Target: $400
 0% 

Problems with my new Mix Maker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-22-2010 , 10:58   Problems with my new Mix Maker
Reply With Quote #1

This is part of a submenu,well whats wrong?

PHP Code:
case :
        {
            
set_hudmessage(64,255,64,-1.0,0.21,1,0.2,10.0,0.01,0.1)
            
show_hudmessage(0,"Mesclando Equipos")
            
            new 
Players[32]
            new 
Num
            get_players
(Players,Num,"h")
            
            for(new 
0;<= Num;i++)
            {
                
cs_set_user_team(Players[random(10)],CS_TEAM_CT,CTsModels[random(sizeof(CTsModels))])
                
cs_set_user_team(Players[random(10)],CS_TEAM_T,TsModels[random(sizeof(TsModels))])
            }
        } 
if i am alone in the server and use this case,debug shows.
Code:
L 05/22/2010 - 16:45:33: [CSTRIKE] Player out of range (0)
L 05/22/2010 - 16:45:33: [AMXX] Displaying debug trace (plugin "Mix_Maker.amxx")
L 05/22/2010 - 16:45:33: [AMXX] Run time error 10: native error (native "cs_set_user_team")
When are more than 10 players in the server,works well,but sometimes sets 6 Players to T and 4 Players to CT,and that kind of values.

How i Can fix it?

Last edited by #8 SickneSS; 05-23-2010 at 04:21.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 


Thread Tools
Display Modes

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 03:45.


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