SA-MP Forums Archive
Warning [204] Please Help - 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] Please Help (/showthread.php?tid=641253)



Warning [204] Please Help - Fletcher007 - 13.09.2017

: warning 204: symbol is assigned a value that is never used: "objectid"
Код:
new objectid,objs,type = GetPVarInt(playerid, "AcessType"), z = GetPVarInt(playerid, "SelectSKIN")-1, price;
 if(type == 1) objs = 7, objectid = floatround(AcessOchki[z][0]), price = floatround(AcessOchki[z][1]);
else if(type == 2) objs = 8, objectid = floatround(AcessKepki[z][0]), price = floatround(AcessKepki[z][1]);
else if(type == 3) objs = 8, objectid = floatround(AcessShapki[z][0]), price = floatround(AcessShapki[z][1]); else if(type == 4) objs = 9, objectid = floatround(AcessMaski[z][0]), price = floatround(AcessMaski[z][1]);
 if(response)
 {



Re: Warning [204] Please Help - Immortal99 - 13.09.2017

The variable objectid wasn't use somewhere.


Re: Warning [204] Please Help - Rehasher - 13.09.2017

Well you're obviously not using objectid n a function you're just defining the variable. Either use it or #pragma unused objectid


Re: Warning [204] Please Help - Fletcher007 - 13.09.2017

Okey thanks


Re: Warning [204] Please Help - Rehasher - 13.09.2017

Use the variable or delete it.