Weapon saving system
#1

------
Reply
#2

------
Reply
#3

pawn Код:
dini_IntSet(file, "Weapon1",WeaponInfo[playerid][Weapon1] = 0);
                dini_IntSet(file, "Weapon1a",WeaponInfo[playerid][Weapon1a] = 0);
                dini_IntSet(file, "Weapon2",WeaponInfo[playerid][Weapon2] = 0);
                dini_IntSet(file, "Weapon2a",WeaponInfo[playerid][Weapon2a] = 0);
                dini_IntSet(file, "Weapon3",WeaponInfo[playerid][Weapon3] = 0);
                dini_IntSet(file, "Weapon3a",WeaponInfo[playerid][Weapon3a] = 0);
                dini_IntSet(file, "Weapon4",WeaponInfo[playerid][Weapon4] = 0);
                dini_IntSet(file, "Weapon4a",WeaponInfo[playerid][Weapon4a] = 0);
                dini_IntSet(file, "Weapon5",WeaponInfo[playerid][Weapon5] = 0);
                dini_IntSet(file, "Weapon5a",WeaponInfo[playerid][Weapon5a] = 0);
                dini_IntSet(file, "Weapon6",WeaponInfo[playerid][Weapon6] = 0);
                dini_IntSet(file, "Weapon6a",WeaponInfo[playerid][Weapon6a] = 0);
                dini_IntSet(file, "Weapon7",WeaponInfo[playerid][Weapon7] = 0);
                dini_IntSet(file, "Weapon7a",WeaponInfo[playerid][Weapon7a] = 0);
                dini_IntSet(file, "Weapon8",WeaponInfo[playerid][Weapon8] = 0);
                dini_IntSet(file, "Weapon8a",WeaponInfo[playerid][Weapon8a] = 0);
                dini_IntSet(file, "Weapon9",WeaponInfo[playerid][Weapon9] = 0);
                dini_IntSet(file, "Weapon9a",WeaponInfo[playerid][Weapon9a] = 0);
                dini_IntSet(file, "Weapon10",WeaponInfo[playerid][Weapon10] = 0);
                dini_IntSet(file, "Weapon10a",WeaponInfo[playerid][Weapon10a] = 0);
                dini_IntSet(file, "Weapon11",WeaponInfo[playerid][Weapon11] = 0);
                dini_IntSet(file, "Weapon11a",WeaponInfo[playerid][Weapon11a] = 0);
                dini_IntSet(file, "Weapon12",WeaponInfo[playerid][Weapon12] = 0);
                dini_IntSet(file, "Weapon12a",WeaponInfo[playerid][Weapon12a] = 0);
I believe that whole thing is the issue. Isn't it supposed to be...
pawn Код:
dini_IntSet(file,variable,new value);//in your case dini_IntSet(file,"Weapon1",0)
...And not your version which is
pawn Код:
dini_IntSet(file,variable,other variable = new value);
Reply
#4

------
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)