Raised This Month: $ Target: $400
 0% 

Compatibility Windows/Linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SkiesOFF
Member
Join Date: Mar 2008
Old 02-26-2009 , 14:05   Compatibility Windows/Linux
Reply With Quote #1

Hello,

My plugin works nice on Windows but don't work on Linux Servers. My friend told me that can be the const. If someone knows the problem i would be very thankful and i will give ++karma
sorry for my english!

Code:
const OFFSET_LINUX = 5
const OFFSET_CSTEAMS = 114

#define PD_LongUse 232
#define CS_NO_ZOOM 0x5A
#define PD_ZOOMTYPE 363
#define PD_ActiveItem 373
#define PD_NextWpnPAttack 46
#define PD_NextWpnSAttack 47
#define PD_AttackAllowed 219

#define PLAYER_JUMP 6
#define OFFSET_TEAM 114
#define OFFSET_MONEY 115
#define OFFSET_DEATH 444
#define OFFSET_CAN_LONGJUMP 356
#define OFFSET_INTERNALMODEL 126

#define TIMELIMIT_NOT_SET -1.0
thanks
SkiesOFF is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-26-2009 , 14:12   Re: Compatibility Windows/Linux
Reply With Quote #2

Code:
[get|set]_pdata_int(Index, Offset, Amount, 5);
__________________
hleV is offline
SkiesOFF
Member
Join Date: Mar 2008
Old 02-26-2009 , 14:22   Re: Compatibility Windows/Linux
Reply With Quote #3

could u explain better please?

will i put this 5 in all [get|set]_pdata_int ?

ty
SkiesOFF is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-26-2009 , 18:25   Re: Compatibility Windows/Linux
Reply With Quote #4

Depending the offset, you have to add an extra offset for linux. By default [get|set]_pdata_int() use +5, so no need to provide it. For weapon offsets the extra offset is +4. You have to provide it.
Arkshine is offline
SkiesOFF
Member
Join Date: Mar 2008
Old 02-27-2009 , 12:23   Re: Compatibility Windows/Linux
Reply With Quote #5

arkshine and hleV +karma
SkiesOFF 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:51.


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