08.03.2015, 18:02
Ok, well anyways strings don't work in ternary do they? I get errors on the following lines of you script:
You just forgot to wrap the strings in parenthesis.
Your code also runs into an infinite loop when using:
It's not 'Index[1]' or 'Index[2]'.
pawn Код:
strcat(grid, (CELL[X/2+1][Y/2+1][in] ? "M" : "_"));//(184) : error 001: expected token: "-string end-", but found "-identifier-"
strcat(grid, (CELL[X/2+1][Y/2+1][left] ? "M" : "_"));//(194) : error 001: expected token: "-string end-", but found "-identifier-"
strcat(grid, (CELL[X/2+1][Y/2+1][up] ? "M" : "_"));//(199) : error 001: expected token: "-string end-", but found "-identifier-"
Your code also runs into an infinite loop when using:
pawn Код:
#define xsize 64
#define ysize 48