Please help with warning 219
#1

Code:
PHP код:
stock TimeStamp()
{
    new 
time GetTickCount() / 1000;
    return 
time;

Error:
PHP код:
\pawno\include\lfuncs.inc(466) : warning 219local variable "time" shadows a variable at a preceding level 
Error line:
PHP код:
new time GetTickCount() / 1000
Reply
#2

If im not wrong, that means that you are defined a variable already defined.
And is not an error, is a warning, you can run the script with that warn,
Reply
#3

pawn Код:
stock TimeStamp()
{
    new time;
    time = GetTickCount() / 1000;
    return time;
}
Any better?
Reply
#4

pawn Код:
#define GetTimeStamp() (GetTickCount() / 1000)
Define would be perfect + it's faster.
Reply
#5

Quote:
Originally Posted by [Nikk]
Посмотреть сообщение
If im not wrong, that means that you are defined a variable already defined.
And is not an error, is a warning, you can run the script with that warn,
I think you were right, thanks for helping guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)