Loops once only?
#1

pawn Код:
new weapid = 1;
public OnFilterScriptInit()
{
    while(weapid <= 2)
    {
        WeaponObjects[weapid] = CreateObject(WeaponData[weapid][WEAPON_MODEL], WeaponData[weapid][WEAPON_X], WeaponData[weapid][WEAPON_Y], WeaponData[weapid][WEAPON_Z], WeaponData[weapid][WEAPON_RX], WeaponData[weapid][WEAPON_RY], WeaponData[weapid][WEAPON_RZ], 300.0);
        printf("ID: %d | ID2: %d", WeaponObjects[weapid], weapid);
        weapid += 1;
    }
    return true;
}
Should do it twice, debug prints only once.
Reply


Messages In This Thread
Loops once only? - by Riddick94 - 11.09.2013, 18:19
Re: Loops once only? - by Macluawn - 11.09.2013, 18:39
Re: Loops once only? - by Riddick94 - 11.09.2013, 18:42
Re: Loops once only? - by Konstantinos - 11.09.2013, 18:53
Re: Loops once only? - by Riddick94 - 11.09.2013, 19:01
Re: Loops once only? - by Konstantinos - 11.09.2013, 19:10
Re: Loops once only? - by Riddick94 - 11.09.2013, 19:27
Re: Loops once only? - by Konstantinos - 11.09.2013, 19:46
Re: Loops once only? - by Riddick94 - 11.09.2013, 19:55
Re: Loops once only? - by Konstantinos - 11.09.2013, 20:00

Forum Jump:


Users browsing this thread: 2 Guest(s)