Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pupalamini
BANNED
Join Date: Jan 2013
Old 01-04-2013 , 16:44   lol
Reply With Quote #1

lol

Last edited by pupalamini; 01-21-2013 at 06:19.
pupalamini is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-04-2013 , 21:58   Re: how pdata in ?
Reply With Quote #2

So what is the question?
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-05-2013 , 04:07   Re: how pdata in ?
Reply With Quote #3

Code:
const m_flNextCharge = 60; 
const m_iReactivate = 61
const m_iJuice = 62
const m_iOn = 63		// 0 = off, 1 = startup, 2 = going
const m_flSoundTime = 64
So you can see m_iReactivate is an integer.

This is how it is used in Off function :

Code:
	if ((!m_iJuice) &&  ( ( m_iReactivate = g_pGameRules->FlHealthChargerRechargeTime() ) > 0) )
	{
		pev->nextthink = pev->ltime + m_iReactivate;
		SetThink(Recharge);
	}
	else
		SetThink( SUB_DoNothing );
So try :

PHP Code:
set_pdata_int(chargerm_iReactivate1
Also, i think linux offset after CBaseToggle is 5 and not 4.

Both classes have as mother class CBaseToggle :
Code:
class CWallHealth : public CBaseToggle
Code:
class CRecharge : public CBaseToggle
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 01-05-2013, 17:09
pupalamini
This message has been deleted by pupalamini.
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 13:37.


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