31.01.2015, 07:57
I have this
And I take the following compile errors
If anything is missing tell me and I will provide it to you
pawn Код:
stock ReturnTime(timevariable)
{
new milliseconds = timevariable, seconds, minutes, string[20];
while(milliseconds > 9)
{
seconds ++;
milliseconds = milliseconds - 10;
}
while(seconds > 59)
{
minutes ++;
seconds = seconds - 60;
}
format(string, sizeof(string), "%d:%02d.%03d", minutes, seconds, milliseconds);
}
return string;
}
pawn Код:
(3371) : warning 209: function "ReturnTime" should return a value
(3372) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.