0.3z Weapon Bug -
Kane_Phoenix - 15.02.2014
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.
Re: 0.3z Weapon Bug -
Tamer - 16.02.2014
It was changed actually. Re-make your parameters in the way it's written on the SA-MP wiki.
Re: 0.3z Weapon Bug -
Kane_Phoenix - 16.02.2014
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
Re: 0.3z Weapon Bug -
Boss201 - 16.02.2014
got the same problem as him
Re: 0.3z Weapon Bug -
Kalcor - 16.02.2014
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.
Re: 0.3z Weapon Bug -
niCe - 17.02.2014
I can confirm this bug: Few onfoot players had multiple weapons with ammo, GetWeaponData returned correct weapon IDs, but 0 ammo for each weapon.