#1

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

Do you have a register system ?
Reply
#3

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?
Reply
#4

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)