I really need help seriously.
#1

I need help for who won the reactiontest in an amount of time and how many times a player won. I want to add it. I'm working for a week but I can't understand. please, can someone help me?
This is the code:
and for the whole script: http://pastebin.com/f365ed4de

Код:
public ReactionWin(playerid)
{
  //where you start counting:
new time_start = GetTickCount();


//where you want to know time difference:
new time_diff = GetTickCount() - time_start;
GivePlayerMoney(playerid, 10000);
SetTimer("SetBack",30,0); // required delay, for some reason.
new reactionwinner[256];
reactionwinnerid = playerid;
new tempstring[256];
GetPlayerName(playerid,reactionwinner,sizeof(reactionwinner));
SendClientMessage(playerid,0x247C1BFF,"You have won the reactiontest!");
format(tempstring,sizeof(tempstring),"%s has won the reactiontest!",reactionwinner);
SendClientMessageToAll(0xFFFF00FF,tempstring);
reactiongap = SetTimer("ReactionTest",time1+random(time2),0); // sets the timer to restart ReactionTest()
return 1;
 }
at the %s has won the reactiontest! I need a time. i need to add something to it. do you know what mean? cause it's hard to explain. I want it like this:
%s has won the reactiontest in [seconds.miliseconds]! he/she won [ammount] times before.

EDIT: warning 204: symbol is assigned a value that is never used: "time_diff"

That's my time warning
Reply


Messages In This Thread
I really need help seriously. - by speedruntrainer - 11.04.2009, 21:39
Re: I really need help seriously. - by speedruntrainer - 18.04.2009, 22:56
Re: I really need help seriously. - by Backwardsman97 - 19.04.2009, 00:43
Re: I really need help seriously. - by speedruntrainer - 19.04.2009, 15:33
Re: I really need help seriously. - by Backwardsman97 - 19.04.2009, 17:01
Re: I really need help seriously. - by speedruntrainer - 19.04.2009, 19:10

Forum Jump:


Users browsing this thread: 1 Guest(s)