Why is this not working?
#1

pawn Код:
new Key1[10],Key2[10], Weapon[2];
            for(new i; i < 13; i ++) {
            format(Key1,sizeof(Key1),"%dWeap",i);
            format(Key2,sizeof(Key2),"%dAmmo",i);
            Weapon[0] = dUserINT(PlayerName(playerid)).(Key1);
            Weapon[1] = dUserINT(PlayerName(playerid)).(Key2);
      GivePlayerWeapon(playerid,Weapon[0],Weapon[1]);
            }
In my file
Код:
2Weap=24
2Ammo=500
So why is it not working?
Reply
#2

Try this: http://forum.sa-mp.com/index.php?topic=76543.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)