13.02.2010, 03:29
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:
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); }