About the loop for() used with GetPlayerWeaponData - 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: About the loop for() used with GetPlayerWeaponData (
/showthread.php?tid=467406)
About the loop for() used with GetPlayerWeaponData -
iJumbo - 02.10.2013
I have a doubt, it seems a bit silly to talk about it but many users who say one thing and others who say another, I would like to sincerely explanations.
I would like to know if i have to use this loop:
pawn Код:
for(new i = 0; i != 13; i++) {
GetPlayerWeaponData(playerid, i, ....
}
or this loop:
pawn Код:
for(new i = 0; i != 12; i++) {
GetPlayerWeaponData(playerid, i, ....
}
Re: About the loop for() used with GetPlayerWeaponData -
Jefff - 02.10.2013
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData
Re: About the loop for() used with GetPlayerWeaponData -
iJumbo - 02.10.2013
What a stupid question I've done.
Now I understand that I'm getting old haah.
the 12 loop prints 0 1 2 3 4 5 6 7 8 9 10 11