SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 06/04/2014, 03:18 PM   #1
Join Date: Jun 2010
Posts: 1,648
Reputation: 53
Default This won't work, loading weapons.

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.
Dokins is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] Saving + Loading weapons BornHuman Scripting Help 0 28/10/2013 09:25 PM
Weapons MySQL loading ancezas Scripting Help 7 20/03/2013 04:51 PM
Loading players weapons Snowman12 Scripting Help 1 09/01/2012 12:21 AM
Crashing after loading weapons. borba Help Archive 8 27/04/2011 08:45 AM
Making weapons loading short ||123|| Help Archive 5 04/09/2010 07:03 PM

All times are GMT. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.