SA-MP Forums Archive
Why is this not working? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why is this not working? (/showthread.php?tid=84613)



Why is this not working? - zallomallo - 02.07.2009

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?


Re: Why is this not working? - Grim_ - 02.07.2009

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