SA-MP Forums Archive
: error 022: must be lvalue (non-constant) - 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: : error 022: must be lvalue (non-constant) (/showthread.php?tid=325240)



: error 022: must be lvalue (non-constant) - !LukniS! - 12.03.2012

Code:
      for(new gas; Gas[gas][Empty] == 0; gas++)
      {
Where's the problem?


Re: : error 022: must be lvalue (non-constant) - Laronic - 12.03.2012

I posted in wrong topic
* Laronic hides


- Requesting delete

Edit: ow well..

pawn Code:
for(new gas = 0; gas < MAX_GAS; gas ++)
{
    Gas[gas][Empty] = 0;
}