Pawno warning
#1

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...
Reply
#2

show the code
Reply
#3

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
};
Reply
#4

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.
Reply
#5

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?
Reply
#6

i think you have two codes named


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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)