Help with error : error 022: must be lvalue (non-constant)
#1

Hi. I have an error, that I wasn't saw ...
Код HTML:
error 022: must be lvalue (non-constant)
Line :

Код HTML:
GangIDs ++;
How I create define?

Код HTML:
#define GangIDs 0
Sooo, sorry for my bad English and plz help me! Thanks.
Reply
#2

You shouldn't define it, but make it as a variable.
pawn Код:
new GangIDs = 0;
pawn Код:
GangIDs++;
Reply
#3

Quote:
Originally Posted by RenovanZ
Посмотреть сообщение
You shouldn't define it, but make it as a variable.
pawn Код:
new GangIDs = 0;
pawn Код:
GangIDs++;
But, I have created enum . So you say, that I should make it as variable? ( GangIDs )
Reply
#4

ok lock the theme I have repaired it
Reply


Forum Jump:


Users browsing this thread: