Raised This Month: $ Target: $400
 0% 

Where is wrong? help me ! thanks!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
griefhy
Member
Join Date: Jul 2006
Old 12-05-2007 , 22:34   Re: Where is wrong? help me ! thanks!
Reply With Quote #5

-_-!!

thanks,this is not my meaning!
I want to do :
show kills,headshots in the every Round ,use "get_user_rstats"
like:
Code:
client_print(id,"kills %d,headshots %d",stats[0],stats[2])

If player1 kill player2

this is right:
Code:
register_clcmd("say /test","show",0)
public show(id)
{
get_user_rstats(id,stats,bodyhits)
client_print(id,print_chat,"kill %d,headshots %d",,stats[0],stats[2])
}
show:[player1] kills [1]

but this is wrong:
Code:
for(new i = 0; i < num; i++)
{
        player = players[i]
        get_user_name(player,name,MAX_NAME_LENGTH)
        get_user_rstats(player,g_stats,g_hits)
        client_print(player,print_chat,"[%s] kills [%d]",name,g_stats[0])
}
show:[player1] kills [0]

why ???
griefhy 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 11:02.


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