This won't work, loading weapons. - 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: This won't work, loading weapons. (
/showthread.php?tid=504997)
This won't work, loading weapons. -
Dokins - 06.04.2014
pawn Code:
for(new w = 0; w < 13; w++)
{
format(fieldname, sizeof(fieldname), "Weapon%d", w);
MySQL_SetInteger(PlayerSQLID[playerid], fieldname, PlayerWeapons[playerid][w], "accounts");
ammo = WepAmmo[PlayerWeapons[playerid][w]];
MySQL_SetInteger(PlayerWeapons[playerid][w], "WepAmmo", ammo, "weapons");
}
PlayerWeapons[playerid][w] = WeaponSQLID.
I'm trying to get the ammo.
I load Weapons Seperately.