AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Compatibility Windows/Linux (https://forums.alliedmods.net/showthread.php?t=86497)

SkiesOFF 02-26-2009 14:05

Compatibility Windows/Linux
 
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:mrgreen:
sorry for my english!:cry:

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:)

hleV 02-26-2009 14:12

Re: Compatibility Windows/Linux
 
Code:
[get|set]_pdata_int(Index, Offset, Amount, 5);

SkiesOFF 02-26-2009 14:22

Re: Compatibility Windows/Linux
 
could u explain better please?

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

ty

Arkshine 02-26-2009 18:25

Re: Compatibility Windows/Linux
 
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.

SkiesOFF 02-27-2009 12:23

Re: Compatibility Windows/Linux
 
arkshine and hleV +karma


All times are GMT -4. The time now is 16:51.

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