do while (true); // Getting rid of warnings / Alternative?
#6

You could do:
pawn Код:
public FindSkin(gender, skin, price)
{
    new skinid;

loop:
   
    skinid = random( 300 );

    if ( SkinDB[skinid][Gender] == gender && SkinDB[skinid][Skin] == skin && SkinDB[skinid][Price] == price )
        return skinid;
   
    goto loop;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)