17.08.2013, 12:02
new ASD[8];
How can I loop from 4 to 8?
Like this?
for(new s = 4; s < 8; s++) Doesn't work though.
How can I loop from 4 to 8?
Like this?
for(new s = 4; s < 8; s++) Doesn't work though.
switch(ASD)
{
case 4..8:
{
// code
}
}
new Text:TD[8];
TD[0] = TextDrawCreate(.....);
TD[1] = TextDrawCreate(.....);
TD[2] = TextDrawCreate(.....);
TD[3] = TextDrawCreate(.....);
TD[4] = TextDrawCreate(.....);
TD[5] = TextDrawCreate(.....);
TD[6] = TextDrawCreate(.....);
TD[7] = TextDrawCreate(.....);
//I just want to show textdraw 4 to 8. So that's why I need to loop it. But I don't know how.
for(new i = 4; i <= 8; i++) {
print("Loop %d\n", i);
}
for(new i = 4; i < 8; i++) {
print("Loop %d\n", i);
}