Raised This Month: $ Target: $400
 0% 

Run time error 10 ...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shino
Senior Member
Join Date: May 2006
Old 05-30-2006 , 12:02   Run time error 10 ...
Reply With Quote #1

this is what i get after debugging:
L 05/30/2006 - 17:58:43: [CSTRIKE] Player out of range (0)
L 05/30/2006 - 17:58:43: [AMXX] Displaying debug trace (plugin "zombiebot.amxx")
L 05/30/2006 - 17:58:43: [AMXX] Run time error 10: native error (native "cs_set_user_team")
L 05/30/2006 - 17:58:43: [AMXX] [0] zombiebot.sma::TeamSet (line 122)

and here's the code:
Code:
114|public TeamSet(players[]) { 115|    new players[32],num,i,id 116|    get_players(players,num) 117|    for(i = 0; i <= num; i++) { 118|        id = players[i] 119|        if (!is_user_bot(id) && is_user_alive(id)) { 120|            cs_set_user_team(id,CS_TEAM_T) 121|        } else { 122|            cs_set_user_team(id,CS_TEAM_CT) 123|        } 124|    } 125|}

any help?
shino is offline
 


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 16:33.


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