Help Gunz DropBox Menu

Newbie Spellweaver
Joined
Jan 13, 2011
Messages
9
Reaction score
1
Hello ragezone, so I am coding dropbox on stage setting forum , i followed "Training Mode" code of thunderz, but on dropbox it's not true,false anymore, so I am requesting other code to code hmm like "1,2,3,4,5" and I am using by true false by this code: "if(ZGetGameClient()->GetMatchStageSetting()->GetStageSetting()->bAfk == true)" etc, but when I do "== 1" it's not working...


And I followed other dropbox coded, but i can't understand them very well

help
 
~C++ {Programmer}
~CO - CoderXII
wtf ?

whatever, look..

StageSetting_StageAFK[STAGESETTING_AFK_MAX] =
{
{true, "ON"}, {false, "OFF"}
};

strcpy( StageSetting_StageAFK[0].szText, ZMsg(MSG_WORD_ON));
strcpy( StageSetting_StageAFK[1].szText, ZMsg(MSG_WORD_OFF));

Search some codes similar to this and make it by yourself "programmer"
 
Upvote 0
wtf ?

whatever, look..

StageSetting_StageAFK[STAGESETTING_AFK_MAX] =
{
{true, "ON"}, {false, "OFF"}
};

strcpy( StageSetting_StageAFK[0].szText, ZMsg(MSG_WORD_ON));
strcpy( StageSetting_StageAFK[1].szText, ZMsg(MSG_WORD_OFF));

Search some codes similar to this and make it by yourself "programmer"
Lol, now you are talking alot... I got same problem, can't done it trololo, would you help us?
 
Upvote 0
Code:
static struct _STAGESETTING_PINGLIMIT
{
	int					Value;
	char				szText[32];
} StageSetting_StagePingLimit[STAGESETTING_PINGLIMIT_MAX] = 
{ {1, ""}, {2, ""}, {3, ""}

Code:
#define GET_PINGLIMIT(_value)		sprintf(szText,"%s %d",ZMsg(MSG_WORD_MAXPING),_value);
	strcpy( StageSetting_StagePingLimit[0].szText, ZMsg( MSG_WORD_NONE));
	GET_PINGLIMIT( 2);		strcpy( StageSetting_StagePingLimit[1].szText, szText);
	GET_PINGLIMIT( 3);	strcpy( StageSetting_StagePingLimit[2].szText, szText);
	INITSTAGESETTING_ITEM("StagePingLimit", pStageSetting->nPingLimit,
		STAGESETTING_PINGLIMIT_MAX, StageSetting_StagePingLimit, STAGESETTING_PINGLIMIT_DEFAULT);

Code:
ZGetGameClient()->GetMatchStageSetting()->GetPingLimit() != 0 //strcpy( StageSetting_StagePingLimit[0].szText, ZMsg( MSG_WORD_NONE));


if different from 0 then true '-'
get the value: int i = ZGetGameClient()->GetMatchStageSetting()->GetPingLimit();
 
Last edited:
Upvote 0
Code:
static struct _STAGESETTING_PINGLIMIT
{
	int					Value;
	char				szText[32];
} StageSetting_StagePingLimit[STAGESETTING_PINGLIMIT_MAX] = 
{ {1, ""}, {2, ""}, {3, ""}

Code:
#define GET_PINGLIMIT(_value)		sprintf(szText,"%s %d",ZMsg(MSG_WORD_MAXPING),_value);
	strcpy( StageSetting_StagePingLimit[0].szText, ZMsg( MSG_WORD_NONE));
	GET_PINGLIMIT( 2);		strcpy( StageSetting_StagePingLimit[1].szText, szText);
	GET_PINGLIMIT( 3);	strcpy( StageSetting_StagePingLimit[2].szText, szText);
	INITSTAGESETTING_ITEM("StagePingLimit", pStageSetting->nPingLimit,
		STAGESETTING_PINGLIMIT_MAX, StageSetting_StagePingLimit, STAGESETTING_PINGLIMIT_DEFAULT);

Code:
ZGetGameClient()->GetMatchStageSetting()->GetPingLimit() != 0 //strcpy( StageSetting_StagePingLimit[0].szText, ZMsg( MSG_WORD_NONE));


if different from 0 then true '-'
get the value: int i = ZGetGameClient()->GetMatchStageSetting()->GetPingLimit();

Fun fact, true represents 1 and vice versa, while false represents 0 and vice versa.
 
Upvote 0
Fun fact, true represents 1 and vice versa, while false represents 0 and vice versa.
yes, 0 is false (would not modify) one or more would be true ... only that this "1" would be a value obviously you would use this value to something ...

I was using this to ping limit, if 0 then it would limit is false both that the ping message in the dropbox is "NONE."...
but if 1 or more, the limit would be ping "on" and the value 1 to max ping is 1, would be used as a ping limit ... but of course, I used an example for him, I use higher values
-----------
Not clear, explain more by advanced example?
I explain to ^..
"ZGetGameClient()->GetMatchStageSetting()->GetPingLimit()" return a value from dropbox..
drop box have: 1, 2, 3

ps: I was not trying to be a troll, just found it funny that he says he is a programmer and can not solve a problem like that, lol.. he can be a programmation student like me, not a programmer.
sorry, my english is bad
 
Last edited:
Upvote 0
I explain to ^..
"ZGetGameClient()->GetMatchStageSetting()->GetPingLimit()" return a value from dropbox..
drop box have: 1, 2, 3
ps: I was not trying to be a troll, just found it funny that he says he is a programmer and can not solve a problem like that, lol.. he can be a programmation student like me, not a programmer.
sorry, my english is bad
It's either I am stupid or stupid,
Code:
#define GRAVITY_1 500.f int i = ZGetGameClient()->GetMatchStageSetting()->GetGravityLimit(); for ( int i = 0; i < 1000; i++) { m_Velocity.z = max( m_Velocity.z - GRAVITY_1*fDelta,-MAX_FALL_SPEED); }
how about this? it deserve facepalm?
 
Upvote 0
Code:
int _newGravity = ZGetGameClient()->GetMatchStageSetting()->GetGravity();
	//#define _Gravity 1.f
	#define Gravity100 100.f
	#define Gravity200 200.f
	#define Gravity300 300.f

	if(_newGravity != 0)
	{
		if(_newGravity == 100)		{ m_Velocity.z = max( m_Velocity.z - Gravity100*fDelta,-MAX_FALL_SPEED); }
		else if(_newGravity == 200) { m_Velocity.z = max( m_Velocity.z - Gravity200*fDelta,-MAX_FALL_SPEED); }
		else if(_newGravity == 300) { m_Velocity.z = max( m_Velocity.z - Gravity300*fDelta,-MAX_FALL_SPEED); }
	}
	else{
		m_Velocity.z = max( m_Velocity.z - GRAVITY_CONSTANT*fDelta,-MAX_FALL_SPEED);
	}

'-'
WHY YOU'RE USING "for" ? O-O
 
Last edited:
Upvote 0
Code:
int _newGravity = ZGetGameClient()->GetMatchStageSetting()->GetGravity();
	//#define _Gravity 1.f
	#define Gravity100 100.f
	#define Gravity200 200.f
	#define Gravity300 300.f

	if(_newGravity != 0)
	{
		if(_newGravity == 100)		{ m_Velocity.z = max( m_Velocity.z - Gravity100*fDelta,-MAX_FALL_SPEED); }
		else if(_newGravity == 200) { m_Velocity.z = max( m_Velocity.z - Gravity200*fDelta,-MAX_FALL_SPEED); }
		else if(_newGravity == 300) { m_Velocity.z = max( m_Velocity.z - Gravity300*fDelta,-MAX_FALL_SPEED); }
	}
	else{
		m_Velocity.z = max( m_Velocity.z - GRAVITY_CONSTANT*fDelta,-MAX_FALL_SPEED);
	}

'-'

That's what I want to see, thanks...
 
Upvote 0
Back