Raised This Month: $ Target: $400
 0% 

get_user_hitzones error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-11-2009 , 15:55   Re: get_user_hitzones error
Reply With Quote #8

Quote:
Originally Posted by m0v3 View Post
Yeach , this is true if I want to get hitzones of a specific player to a specific player. But even the get_user_hitzones description tells : Why doesn't that work ? I know I can loop through all the players , and in Exolent[jNr]'s way I'll get what bodyparts client can hit on each of playing users. But if all the results are the same as I can have set
PHP Code:
set_user_hitzonesclient 
, then it would be better for me just to get if I have set the hitzones specific , or they are default. Your solution is much longer than just one command, so I'm wondering why it isn't working , if description tells it should ?
If you used set_user_hitzones( client, 0, ( hitzones ) ), then you can still use my code.
You still have to supply a target to get_user_hitzones( ) because it checks if it is a player.

Code:
public MyFunction( client ) {     new iHitzones;     for( new iTarget = 1; iTarget <= g_iMaxPlayers; iTarget++ )     {         if( is_user_connected( iTarget ) )         {             iHitzones = get_user_hitzones( client, iTarget );                         break;         }     }         // iHitzones = body parts where client can hit other players     // Note: This is only true for all targets IF you used 0 as target in set_user_hitzones( ) }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 18:22.


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