27.12.2010, 04:16
Here I`m again..
Now with small problem but will be nice to know.
How could i stop script (return) and use break in one time?
Reason is, i want to stop forwarded script and break a loop.
`break; // here i want to break and return something to not allow next loop`
How would i do that in my case?
Tried things like:
Now with small problem but will be nice to know.
How could i stop script (return) and use break in one time?
Reason is, i want to stop forwarded script and break a loop.
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
//script
}
else
{
//script
}
}
else
{
// script
}
break; // here i want to break and return to not allow next loop
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
How would i do that in my case?
Tried things like:
pawn Код:
return break;
//---
break;
return 1;
//----