SA-MP Forums Archive
Warning 204.... - 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: Warning 204.... (/showthread.php?tid=546690)



Warning 204.... - C0olp1x - 17.11.2014

warning 204: symbol is assigned a value that is never used: "gate2"
warning 204: symbol is assigned a value that is never used: "gate"
warning 204: symbol is assigned a value that is never used: "gate1"

Help i don't know how to fix this

Код:
new gate1;
new gate2;
new gate; 

gate = CreateDynamicObject(980, 786.29541, -1152.44470, 25.66892,   0.00000, 0.00000, 270.56699); 
gate1 = CreateDynamicObject(980, 664.91754, -1309.57666, 15.30691,   0.00000, 0.00000, 180.15981); 
gate2 = CreateDynamicObject(980, 659.49573, -1227.08826, 17.05670,   0.00000, 0.00000, 60.71362);



Re: Warning 204.... - Abagail - 17.11.2014

Put this at the top of the script if it REALLY annoys you,
#pragma unused gate
#pragma unused gate1
#pragma unused gate2

It's only a warning, though. It means that you assign the variable but never actually use the variable anywhere else.


Re: Warning 204.... - C0olp1x - 17.11.2014

Thank u