View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-12-2018 , 15:19   Re: PUG Auto Spec on Connect & 5v5 Team lock
Reply With Quote #4

Quote:
Originally Posted by vitorrossi View Post
Code:
set_pdata_int( id, m_bHasChangeTeamThisRound, 0, XO_PLAYER )
This offset is a boolean. You should use set_pdata_bool instead
No. The boolean offset is 521 - 20 = 501 for windows(the value to use with get/set_pdata_bool). The value he's using is 125, the converted value, so *_pdata_int is correct here. Tho, if you convert bool offsets most likely you are going to need to use flags to get the correct value.
__________________

Last edited by HamletEagle; 03-12-2018 at 15:20.
HamletEagle is offline