ok, no errors
I didn't get it to work because I need to add things i think.
This is the code now:
pawn Код:
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]!
So I guess I need to add something. you see I already used the timercode. but i need to add something like %d or %s or so, Am I right?
If you help and it works, I can update my server version to 1.3