SA-MP Forums Archive
Pawno warning - 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: Pawno warning (/showthread.php?tid=559626)



Pawno warning - Aldin78 - 24.01.2015

Compile error:
Код:
\pawno\include\YSI\y_ini.inc(1345) : warning 219: local variable "temp" shadows a variable at a preceding level
What should I do?
I can see it's not .pwn so I don't understand this...


Re: Pawno warning - lanix - 24.01.2015

show the code


Re: Pawno warning - Aldin78 - 24.01.2015

Evo ti kod pricaj na hrvatski

Код:
enum letjeInfo
{
	cModel,
	Float:cLocationx,
	Float:cLocationy,
	Float:cLocationz,
	Float:cAngle,
	cColorOne,
	cColorTwo,
	cOwner[MAX_PLAYER_NAME],  // (1345)
	cOwned,
	cLock,
	cPaintjob,
	cVirWorld,
	cReg[64],
	cComponent0,
	cComponent1,
	cComponent2,
	cComponent3,
	cComponent4,
	cComponent5,
	cComponent6,
	cComponent7,
	cComponent8,
	cComponent9,
	cComponent10,
	cComponent11,
	cComponent12,
	cComponent13,
	cRokreg,
	cGep1,
	cGep2,
	cGep3,
	cGep4
};



Re: Pawno warning - Schneider - 24.01.2015

This is an English forum Aldin, we can't help you if you write in other languages.
Go here >> http://forum.sa-mp.com/forumdisplay.php?f=33 if you want help in your own language.


Re: Pawno warning - Aldin78 - 24.01.2015

i saw from his stats that he's from Croatia and i said him if it's easier for him he can speak his language because i'll understand him. I didn't give him any more information about error. Anyway, sorry.
Does anyone have a solution for this?


Re: Pawno warning - GGW - 24.01.2015

i think you have two codes named


Код:
temp
name The First one a different name from the other


Re: Pawno warning - Aldin78 - 24.01.2015

Didn't help.
But why pawno is showing that line which hasn't got any relation with temp.


Re: Pawno warning - Schneider - 24.01.2015

Look at the error, it's not pointing at line 1345 in your script, but at line 1345 in y_ini.inc
You probably created in your script a new variable 'temp' which is already defined in y_ini.inc.

Just rename the temp-variable in your script to something different.