26.07.2015, 16:39
So, I tried to make that player can't pickup weapon if he already has that type of weapon.
Translate: Sorry, you already have this type of weapon!
Well, I think the problem is that it isn't checking player weapons, but I'm not sure. The code compliers without any errors, but it isn't working in game.
Код:
if (GetPlayerWeaponData(playerid, GetWeaponSlot(gid), PlayerData[playerid][pWeapon], PlayerData[playerid][pAmmo])) return SendErrorMessage(playerid, "Atvainojiet, Jums jau ir љī tipa ierocis!");
Well, I think the problem is that it isn't checking player weapons, but I'm not sure. The code compliers without any errors, but it isn't working in game.