SA-MP Forums Archive
Better way of saving than this? - 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)
+--- Thread: Better way of saving than this? (/showthread.php?tid=476492)



Better way of saving than this? - Chrillzen - 18.11.2013

Alright, let's say I want to save 13 weapons. Is there any better way of doing it than this?

pawn Код:
enum pInfo
{
   pWeapon1,
   pAmmo1,
   pWeapon2,
   pAmmo2,
   pWeapon3,
   pAmmo3
}



Re: Better way of saving than this? - Patrick - 18.11.2013

That's good, but my one is shorter

pawn Код:
enum pInfo
{
   pWeapon[13],// = 12 + 1
   pAmmo[13] // = 12 + 1
}