Compile Errors
#1

I have this

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;
}
And I take the following compile errors

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.
If anything is missing tell me and I will provide it to you
Reply


Messages In This Thread
Compile Errors - by SecretBoss - 31.01.2015, 07:57
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:06
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:07
Re: Compile Errors - by M4D - 31.01.2015, 08:13
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:16
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:20
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:22
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:25
Re: Compile Errors - by SecretBoss - 31.01.2015, 08:30
Re: Compile Errors - by ATGOggy - 31.01.2015, 08:32

Forum Jump:


Users browsing this thread: 3 Guest(s)