Raised This Month: $ Target: $400
 0% 

Using get_user_team in a loop, returns (-1)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 10-05-2010 , 19:35   Using get_user_team in a loop, returns (-1)
Reply With Quote #1

PHP Code:
new iPlayers[32], iNum
get_players
(iPlayersiNum)
for(new 
0iNumi++)
{
    
client_print(0print_chat"%d",  get_user_team(i))

what am I doing wrong? also: I tested this with and without bots, it reports correct team numbers for bots, but human players have a -1.
__________________
+|- KARMA Respectively

HLM 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 10:59.


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