Need help with warnings.. - 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: Need help with warnings.. (
/showthread.php?tid=153103)
Need help with warnings.. -
[Sk]Noob - 07.06.2010
Код:
C:\Users\Yaroslav\Desktop\SDRP\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Yaroslav\Desktop\SDRP\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Yaroslav\Desktop\SDRP\filterscripts\VehOwn.pwn(894) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Yaroslav\Desktop\SDRP\filterscripts\VehOwn.pwn(3184) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Yaroslav\Desktop\SDRP\filterscripts\VehOwn.pwn(3475) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Yaroslav\Desktop\SDRP\filterscripts\VehOwn.pwn(3782) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Yaroslav\Desktop\SDRP\filterscripts\VehOwn.pwn(4295) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 2632 bytes
Code size: 189628 bytes
Data size: 2956568 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5160 cells (20640 bytes)
Total requirements: 3165212 bytes
7 Warnings.
1
Код:
#define FILTERSCRIPT
239
894
3184
3475
Код:
public LoadVehicles(playerid, string[])
3782
4295
Код:
strtok(const string[], &index)
Re: Need help with warnings.. -
Backwardsman97 - 07.06.2010
You probably created the variable string at the top of your script so now all of the other times you created it, it will say that. And those first two warnings are for your includes, not the script.
C:\Users\Yaroslav\Desktop\SDRP\pawno\include\
Dini.inc(239)
C:\Users\Yaroslav\Desktop\SDRP\pawno\include\
utils.inc(1)