SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=514864)



Help - JakeHunter1 - 23.05.2014

System for saving weapons duplicate the ammo .. :S
here is gamemode... http://pastebin.com/iwUg3Mmd


Re: Help - GeekSiMo - 23.05.2014

Do you have a register system ?


Re: Help - Dignity - 23.05.2014

Try this (line 427):

pawn Код:
ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon1], pInfo[playerid][Wep1Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon2], pInfo[playerid][Wep2Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon3], pInfo[playerid][Wep3Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon4], pInfo[playerid][Wep4Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon5], pInfo[playerid][Wep5Ammo]);
instead of

pawn Код:
GivePlayerWeapon(playerid, pInfo[playerid][Weapon1], pInfo[playerid][Wep1Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon2], pInfo[playerid][Wep2Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon3], pInfo[playerid][Wep3Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon4], pInfo[playerid][Wep4Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon5], pInfo[playerid][Wep5Ammo]);
I don't know if that fixes it but tell me if it does or doesn't


EDIT:

Quote:
Originally Posted by GeekSiMo
Посмотреть сообщение
Do you have a register system ?
Did you even read the pastebin?


Re: Help - JakeHunter1 - 23.05.2014

Quote:
Originally Posted by GeekSiMo
Посмотреть сообщение
Do you have a register system ?
Yes i have..

EDIT:i saw the second replay i've try it ..


Re: Help - GeekSiMo - 23.05.2014

Try This : https://sampforum.blast.hk/showthread.php?tid=279986


Re: Help - JakeHunter1 - 23.05.2014

Quote:
Originally Posted by Mionee
Посмотреть сообщение
Try this (line 427):

pawn Код:
ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon1], pInfo[playerid][Wep1Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon2], pInfo[playerid][Wep2Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon3], pInfo[playerid][Wep3Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon4], pInfo[playerid][Wep4Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon5], pInfo[playerid][Wep5Ammo]);
instead of

pawn Код:
GivePlayerWeapon(playerid, pInfo[playerid][Weapon1], pInfo[playerid][Wep1Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon2], pInfo[playerid][Wep2Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon3], pInfo[playerid][Wep3Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon4], pInfo[playerid][Wep4Ammo]);
        GivePlayerWeapon(playerid, pInfo[playerid][Weapon5], pInfo[playerid][Wep5Ammo]);
I don't know if that fixes it but tell me if it does or doesn't


EDIT:



Did you even read the pastebin?
Thanks it works fine now .. +REP