04.12.2014, 16:53
I tried to do something like this:
(A countdown timer)
Everything works very good if only one player types /test123
But, if 2 players type at the same time /test123 everything is going f*cked up ... what is wrong ?
(A countdown timer)
Everything works very good if only one player types /test123
pawn Код:
CMD:test123(playerid,params[])
{
stick = 5;
SetTimerEx("messagecount", 1000, 1, "i", playerid);
}
pawn Код:
new stick;
forward messagecount(playerid);
pawn Код:
public messagecount(playerid)
{
stick--;
switch(stick)
{
case 0:
{
SCM(playerid,COLOR_PURPLE,"Timer ended!");
}
case 1: SCM(playerid,COLOR_PURPLE,"Test 1");
case 2: SCM(playerid,COLOR_PURPLE," Test 2");
case 3: SCM(playerid,COLOR_PURPLE,"Test 3");
case 4: SCM(playerid,COLOR_PURPLE,"Test 4");
}
return 1;
}