0.3z Weapon Bug
#1

Something changed in GetPlayerWeaponData?

To Save the Weapons i use:
for (new i = 0; i < 13; i++){
GetPlayerWeaponData(playerid, i, weapons[playerid][i][0], weapons[playerid][i][1]);
}

After Paintball:
for(new i = 0; i < 13; i++) {
GivePlayerWeapon(playerid,weapons[playerid][i][0],weapons[playerid][i][1]);
}

Some Players called me they got some other Weapons back:
Example:
1.Player has Flowers , after match Flowers + Golfclub

2.Chainsaw instead of ... we dont use a Chainsaw in the Script, if yes = Ban, but the Player was not banned.
Pls check the function thx.
Reply
#2

It was changed actually. Re-make your parameters in the way it's written on the SA-MP wiki.
Reply
#3

Quote:
Originally Posted by Tamer T
Посмотреть сообщение
It was changed actually. Re-make your parameters in the way it's written on the SA-MP wiki.
Wiki:
GetPlayerWeaponData(playerid, slot, &weapons, &ammo);
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);

My:
GetPlayerWeaponData(playerid, i, weapons[playerid][i][0], weapons[playerid][i][1]);

So i dont need to change something
Reply
#4

got the same problem as him
Reply
#5

Nothing was changed although I do have some reports of players having weapons in the weapon data which are never given by the script. It'll be investigated and fixed if needed.

There was another problem with GetPlayerWeapon when passengering in a vehicle. That has been fixed in the 0.3z R1-2 server update.
Reply
#6

I can confirm this bug: Few onfoot players had multiple weapons with ammo, GetWeaponData returned correct weapon IDs, but 0 ammo for each weapon.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)