Making weapons loading short
#5

Quote:
Originally Posted by ||123||
Посмотреть сообщение
I want to load them...like making a loop which loads all of them.
Be a bit more clear next time then. With my arrays:

pawn Код:
new weapons[MAX_PLAYERS][13][2]; // 0 - Weapon ID | 1 - Ammo Count

stock getPlayerWeaponsToArray(playerid) {
    for (new i = 0; i < 13; i++)
    {
        GetPlayerWeaponData(playerid, i, weapons[playerid][i][0], weapons[playerid][i][1]);
    }
   
    return 1;
}
Untested.
Reply


Messages In This Thread
Making weapons loading short - by ||123|| - 04.09.2010, 18:39
Re: Making weapons loading short - by Calgon - 04.09.2010, 18:42
Re: Making weapons loading short - by ||123|| - 04.09.2010, 18:44
Re: Making weapons loading short - by SpaZ (Ed) - 04.09.2010, 18:49
Re: Making weapons loading short - by Calgon - 04.09.2010, 18:55
Re: Making weapons loading short - by ||123|| - 04.09.2010, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)