18.12.2013, 12:23
hello guys i have question, is possible to use "break" for returning values from loop and breaking down a loop?
Example:
Example:
Код:
stock GetVehicleIDFromSQL(sqlid) { for(new i = 1; i <= MAX_VEHICLES; i++) { if(IsValidVehicle(i)) { if(sqlid == AVDB[i][CSQLID]) { //return i; break i; } } } return INVALID_VEHICLE_ID; }