samp-foreach icon indicating copy to clipboard operation
samp-foreach copied to clipboard

macros doesn't work well with IteratorArray and Iterator

Open Zorono opened this issue 6 months ago • 0 comments

when i try to use macros on foreach function, it results in

error 001: expected token: ";", but found ":"
warning 215: expression has no effect
error 029: invalid expression, assumed zero

like

#define TEST:: gng_

new Iterator:TEST::PLAYERS<GANG_MAX_PLAYERS>;

foreach(new pL : TEST::PLAYERS) // here
{
    // ....
}

Zorono avatar Aug 06 '24 14:08 Zorono