18.06.2018, 23:43
Hi, so i have this code:
But in the server console i get this:
'u' goes from 0 to 8 (it should go to 9) and 'i' remains 0, why?
PHP код:
new PlayerText:SnakeBox[MAX_PLAYERS][9][9];
public OnPlayerConnect(playerid){
for(new i; i < 10; i++){
for(new u; u < 10; u++){
SnakeBox[playerid][i][u] = CreatePlayerTextDraw(playerid, 262.327697 + 13.80011 * i, 194.640869 + 15.949951 * u, "box");
//other textdraw-releated stuff
printf("i = %d, u = %d", i, u);
}
}
return 1;
}
Код:
i = 0, u = 0 i = 0, u = 1 i = 0, u = 2 i = 0, u = 3 i = 0, u = 4 i = 0, u = 5 i = 0, u = 6 i = 0, u = 7 i = 0, u = 8