Raised This Month: $ Target: $400
 0% 

Comparing ways of getting team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 12-16-2013 , 18:43   Re: Comparing ways of getting team
Reply With Quote #3

Wrote for newbies.

It is recommended using macros instead of writing numbers right in the code.

PHP Code:
// offsets
#define m_iTeam 114

public plugin_init() {
    
//...
}

some_function(id) {
    
//...
    
iTeam get_pdata_int(idm_iTeam)
    
//...


I'm not sure is it required to check pev_valid(id) == 2 before using get_pdata_int in that particular case...
__________________
isotonic 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 16:25.


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