20.06.2011, 22:22
pawn Код:
forward SecundeLeftUpdater();
public SecundeLeftUpdater()
{
new
string[ 10 ];
switch(SecundeLeft)
{
case 00:
{
SecundeLeft = 60;
MinuteLeft--;
format(string, 10, "0%d", MinuteLeft);
TextDrawSetString(MinLeft, string);
UltimateSecond = 0;
}
case 10:
{
SecundeLeft = 10;
UltimateSecond = 1;
}
}
if(UltimateSecond == 1)
{
SecundeLeft--;
format(string, 10, "%0d", SecundeLeft);
TextDrawSetString(SecLeft, string);
return 1;
}
SecundeLeft--;
format(string, 10, "%d", SecundeLeft);
TextDrawSetString(SecLeft, string);
return 1;
}
I want 2:09