Raised This Month: $ Target: $400
 0% 

can't get cs_get_armoury_type to work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AndraX2000
Member
Join Date: Mar 2006
Location: 39°57' N 83°14' W
Old 03-27-2006 , 20:24  
Reply With Quote #1

teame06's code and mine were equivalent. In fact, I had a sneaking suspicion that there was something deeper going on. So I installed AMX Mod X on my Windows machine and compiled my original script on it. It worked fine (as does team06's). The fault lay not in the script but in cstrike.h. The error caused cs_get_armoury_type to work on Windows, but not on Linux.

For anyone wanting to use cs_get_armoury_type or cs_set_armoury_type right now on Linux you will need to change line 106 in cstrike.h from
Code:
#define OFFSET_ARMOURY_TYPE                     34 + EXTRAOFFSET
to
Code:
#define OFFSET_ARMOURY_TYPE                     34 + EXTRAOFFSET_WEAPONS
and then recompile.
AndraX2000 is offline
Reply



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:40.


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