Defined? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Defined? (
/showthread.php?tid=116783)
Defined? -
godknightx - 30.12.2009
Hy
I dont know why, but the pawno is write, the variable is defined... but before there was such a problem...
If i write this to a command:
pawn Код:
new where[80], data[60][60];
The other commands, what is use "where" or "data" variable, is say this:
Код:
*****(15833) : warning 219: local variable "data" shadows a variable at a preceding level
*****(17162) : warning 219: local variable "where" shadows a variable at a preceding level
*****(17316) : warning 219: local variable "where" shadows a variable at a preceding level
*****(17434) : error 021: symbol already defined: "where"
*****(17470) : warning 219: local variable "where" shadows a variable at a preceding level
*****(24033) : warning 219: local variable "where" shadows a variable at a preceding level
*****(24133) : warning 219: local variable "where" shadows a variable at a preceding level
What is the problem with the "data" ?
Re: Defined? -
Striker_Moe - 30.12.2009
Thats because youґve got another data variable somewhere else in your script. You can fix the problem renaming data to data2 or something like that. Same with the where.
Re: Defined? -
godknightx - 30.12.2009
Yes, but if I write only where, its not problem... o.O