SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/03/2012, 04:16 PM   #1
!LukniS!
Little Clucker
 
Join Date: Dec 2011
Posts: 25
Reputation: 4
Default : error 022: must be lvalue (non-constant)

Code:
      for(new gas; Gas[gas][Empty] == 0; gas++)
      {
Where's the problem?
!LukniS! is offline   Reply With Quote
Old 12/03/2012, 04:38 PM   #2
Laronic
Huge Clucker
 
Laronic's Avatar
 
Join Date: Mar 2011
Posts: 412
Reputation: 57
Default Re: : error 022: must be lvalue (non-constant)

I posted in wrong topic
/me hides


- Requesting delete

Edit: ow well..

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

Last edited by Laronic; 12/03/2012 at 04:46 PM. Reason: Delete
Laronic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 022: must be lvalue (non-constant) BLAbla93 Scripting Help 3 07/03/2012 07:22 AM
error 022: must be lvalue (non-constant) kiloman3 Scripting Help 2 23/11/2011 11:10 AM
: error 022: must be lvalue (non-constant) kickflipdude Help Archive 2 02/04/2011 03:01 PM
error 022: must be lvalue (non-constant) DiddyBop Help Archive 3 03/09/2010 07:14 PM


All times are GMT. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.