Help With impl.inc - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help With impl.inc (
/showthread.php?tid=540780)
Help With impl.inc -
Jdt - 07.10.2014
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;
AW: Help With impl.inc -
lcp9 - 07.10.2014
Maybe you've already got a global variable called 'time'.
Re: Help With impl.inc -
VishvaJeet - 07.10.2014
You have already declared "time" variable as Global or defined in another .inc file
Re: Help With impl.inc -
Jdt - 07.10.2014
I Don't Get it . How do i get rid of that ?
Re: Help With impl.inc -
Phyzic - 07.10.2014
Open your script and search 'time' variable.
Rename it to something like :- Time2 or Time3.
Re: Help With impl.inc -
Jdt - 07.10.2014
Not Working !
Re: Help With impl.inc -
Quickie - 07.10.2014
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
Re: Help With impl.inc -
(SF)Noobanatior - 07.10.2014
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