Raised This Month: $ Target: $400
 0% 

Problems with my new Mix Maker


Post New Thread Reply   
 
Thread Tools Display Modes
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
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 05-22-2010 , 11:11   Re: Random 5 Players Problem
Reply With Quote #2

Maybe this can help you:
http://forums.alliedmods.net/showthread.php?t=115196
__________________
"There is no knowledge, that is not power"
fezh is offline
Old 05-22-2010, 11:15
#8 SickneSS
This message has been deleted by #8 SickneSS.
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-22-2010 , 15:57   Re: Problems with my new Mix Maker
Reply With Quote #4

I change the title of this because I don't want to make a lot of threads (1 for error) ...

Thanks to help fezh,but doesn't works.

sorry for my english
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Old 05-24-2010, 07:30
#8 SickneSS
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
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 03:45.


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