Help With impl.inc
#1

Hello , I Need help with this Problem

Код:
C:\Raven's Roleplay 0.3z\pawno\include\YSI\y_va/impl.inc(568) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Raven's Roleplay 0.3z\pawno\include\YSI\y_va/impl.inc(573) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Raven's Roleplay 0.3z\pawno\include\YSI\y_hooks/impl.inc(2629) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Raven's Roleplay 0.3z\pawno\include\YSI\y_timers/impl.inc(93) : warning 219: local variable "time" shadows a variable at a preceding level
Here is the Line on impl.inc
Line 568
pawn Код:
stock va_GameTextForPlayer(playerid, const fmat[], time, style, va_args<>)
Line 573
pawn Код:
stock va_GameTextForAll(const fmat[], time, style, va_args<>)


Y Hooks
pawn Код:
public OnPlayerFinishRace(playerid, race, position, prize, time)
Y Timers
pawn Код:
hook OnScriptInit()
{
    P:1("hook Timers_OnScriptInit called");
    new
        pointer,
        time,
        idx,
        entry;
Reply
#2

Maybe you've already got a global variable called 'time'.
Reply
#3

You have already declared "time" variable as Global or defined in another .inc file
Reply
#4

I Don't Get it . How do i get rid of that ?
Reply
#5

Open your script and search 'time' variable.
Rename it to something like :- Time2 or Time3.
Reply
#6

Not Working !
Reply
#7

use Find/Search Text in pawno
Crtl+F and type: time


search for this one
pawn Код:
new time;//change it to anyname but be sure to change the other functions variable that used this global variable
Reply
#8

Quote:
Originally Posted by Jdt
Посмотреть сообщение
Hello , I Need help with this Problem

pawn Код:
stock va_GameTextForPlayer(playerid, const fmat[], GTtime, style, va_args<>) //<--- change here
Line 573
pawn Код:
stock va_GameTextForAll(const fmat[], GTtime, style, va_args<>) //<---- and here
and in the rest of the function below or can you post lines 568-585 of impl.inc
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)