I need help
#1

It doesn't getting weapons. It says THere's no weapon.

PHP код:
case 0// Store weapons
            
{
                
file INI_Open(filename);
                
Loop(weap141)
                {
                    
format(tmpsizeof(tmp), "Weapon%d"weap);
                      
format(tmp2sizeof(tmp2), "Weapon%dAmmo"weap);
                 
                    
GetPlayerWeaponData(playeridweaphInfo[h][Weapon][weap], hInfo[h][Ammo][weap]);
                    if(
hInfo[h][Ammo][weap] < || (weap == 11 && hInfo[h][Weapon][weap] != 46)) continue;
                    
INI_WriteInt(filetmphInfo[h][Weapon][weap]);
                    
INI_WriteInt(filetmp2hInfo[h][Ammo][weap]);
                    
SendGun(playeridhInfo[h][Weapon][weap], -hInfo[h][Ammo][weap]);
                    
tmpcount++;
                }
                
INI_Close(file);
                switch(
tmpcount)
                {
                    case 
0ShowInfoBox(playeridE_NO_WEAPONStmpcount);
                    default: 
ShowInfoBox(playeridI_HS_WEAPONS1tmpcountAddS(tmpcount));
                } 
I just downloaded this script from somewhere but i want it saves weapons. It doesn't getting weapons.
NOTE: I m not saying saving. it doesn't getting.

and i am using this in my script for anti weapons

PHP код:
stock SendGun(playeridweaponidammo)
{
    new 
slot GetWeaponSlot(weaponid);
    
Weapons[playerid][slot] = weaponid;
    
GivePlayerWeapon(playeridweaponidammo);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)