Reaction Test dont tells the correct Response Time!
#1

When i won the reaction test after a long time it tells me that i done the reaction in 0.0 seconds ? Anybody know how to fix that?
Some of the Code of my Reaction Test:
Код:
new reactionstr[9];
new reactioninprog;
new rwinnerid;
new reactiongap;
new pResponseTime[MAX_PLAYERS];
public ReactionWin(playerid)
{
	GivePlayerMoney(playerid, 50000);
	SetPlayerScore(playerid, GetPlayerScore(playerid) +5);
	SetTimer("SetBack",30,0);
	new reactionwinner[256];
	rwinnerid = playerid;
	new tempstring[256];
	GetPlayerName(playerid,reactionwinner,sizeof(reactionwinner));
	format(tempstring, sizeof(tempstring), "%s(%d) has won the reaction test in %0.2f seconds", reactionwinner, playerid,pResponseTime[playerid]);
	SendClientMessageToAll(MARINE_BLUE, tempstring);
	reactiongap = SetTimer("ReactionTest",time1+random(time2),0);
}
Reply
#2

Код:
new reactionstr[9];
new reactioninprog;
new rwinnerid;
new reactiongap;
new Float:pResponseTime[MAX_PLAYERS];
public ReactionWin(playerid)
{
	GivePlayerMoney(playerid, 50000);
	SetPlayerScore(playerid, GetPlayerScore(playerid) +5);
	SetTimer("SetBack",30,0);
	new reactionwinner[256];
	rwinnerid = playerid;
	new tempstring[256];
	GetPlayerName(playerid,reactionwinner,sizeof(reactionwinner));
	format(tempstring, sizeof(tempstring), "%s(%d) has won the reaction test in %0.2f seconds", reactionwinner, playerid,pResponseTime[playerid]);
	SendClientMessageToAll(MARINE_BLUE, tempstring);
	reactiongap = SetTimer("ReactionTest",time1+random(time2),0);
}
Reply
#3

Thanks i will test it...

AFTER TEST: Worked!
Reply
#4

where bouts in gm i put that??
Reply
#5

well read mate OGS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)