19.12.2011, 19:49
Hi, I am having a problem with my weapon saving system.
I spawned myself a Desert Eagle with 30 ammo. I logged out of the game and then I logged back in. When I spawned, I noticed my Desert Eagle had 60 ammo.
The function:
The code that spawns Desert Eagles:
So, my problem is with my weapon saving system. My ammo system is bugged. My ammo for my guns duplicate. I am using dini, and Vortex Roleplay 1 script. Any suggestions?
I spawned myself a Desert Eagle with 30 ammo. I logged out of the game and then I logged back in. When I spawned, I noticed my Desert Eagle had 60 ammo.
The function:
pawn Код:
public GivePlayerWeaponEx(playerid, weapon, ammo)
pawn Код:
case 22, 23, 24:
{
Player[playerid][WepSlot2] = weapon;
Player[playerid][WepAmmo2] = ammo;
GivePlayerWeapon(playerid, weapon, ammo);
}