15.04.2010, 11:03
hey Guys, i know how to make a loop, but how can i stop the loop if it found the first result?
If i use return for that it just would end the function but there are more things to execute thats why i cant use it. Any Ideas?
Код:
new strings[9][256]; for(new i=0;i<sizeof(strings);i++) { if(!strlen(strings[i])) { format(strings[i],sizeof(strings[i],"blablabla %s",blah); TextDrawSetString(Request,strings[i]); } } //after it founds the first empty string, it should do the if action and then stop looping and going on here: { Here would be the next thing to do //examplescript; }
If i use return for that it just would end the function but there are more things to execute thats why i cant use it. Any Ideas?