y_ini loop
#3

PHP код:
for(new isizeof Inventoryi++)
    {
        new 
file[30];
        
INI_Int(fmat(file"Item%d"i), pVar[playerid][inv_itemid][i]);
        
INI_Int(fmat(file"Ammount%d"i), pVar[playerid][inv_itemammount][i]);
    }
    for(new 
i6i++)
    {
        new 
file[30];
        
INI_Int(fmat(file"ItemInSlot%d"i), pVar[playerid][inv_ItemInSlot][i]);
        
defer AttachPlayerObjects(playerid);
    }
    new 
wepdata[2][12];
    for(new 
i12i++)
    {
        new 
file[30];
        
INI_Int(fmat(file"Weapon%d"i), wepdata[0][i]);
        
INI_Int(fmat(file"Ammo%d"i), wepdata[1][i]);
        
GivePlayerWeapon(playeridwepdata[0][i], wepdata[1][i]);
        
printf("Call %d"i);
    } 
First 2 loops working fine..
Reply


Messages In This Thread
y_ini loop - by KesaSport - 02.06.2016, 17:36
Re: y_ini loop - by Dayrion - 02.06.2016, 17:45
Re: y_ini loop - by KesaSport - 02.06.2016, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)