Raised This Month: $ Target: $400
 0% 

set_pdata_int


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
watch
Senior Member
Join Date: Sep 2005
Old 02-23-2006 , 12:28   set_pdata_int
Reply With Quote #1

The purpose of this is to allow tfc engineers to build more than one sentry and im sorry if im a bit newb, im new to this.

I came across this line on some forums which contains the offset and value for setting the players build status

Code:
	*(word *)((char *)pEntity->pvPrivateData + 346) = 0x0000;
I've tested this and it works (also ive tried 0 instead of 0x0000 and it still works, not sure if it will have any adverse effects as im not familiar with this stuff), basically im having trouble recreating it in amxx, ive tried set_pdata_int(id,346,0) but it doesnt work and also get_pdata_int(id,346) returns 0 when i have a sentry

Quote:
(@BAILOPAN) make sure you keep in mind that set_pdata_int is 4byte aligned
(@BAILOPAN) WORD is 2 bytes, you need set_pdata_short maybe
I can't find anything about set_pdata_short apart from the JGHG2 module for amx, just wondering if it is still possible to do this, and how ?

thanks in advance
__________________
Code:
#include <amusing_small_signiture>
watch 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 20:13.


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