SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Bug Reports (https://forum.sa-mp.com/forumdisplay.php?f=20)
-   -   Complete scripting bugs list (0.3 updated) (https://forum.sa-mp.com/showthread.php?t=59486)

beckzy 27/12/2008 06:09 PM

Complete scripting bugs list (0.3e updated)
 
a_players.inc
  • SpawnPlayer - Kills the player if they are in a vehicle.
  • native SetPlayerAmmo(playerid, weaponslot, ammo) - It asks you for the weaponslot but it should say weaponid.
  • GetPlayerColor - Returns 0 unless SetPlayerColor has been used.
  • GetPlayerSkin - If you change the skin id with SetSpawnInfo, GetPlayerSkin will return the new skin id if the player hasn't respawned yet and is still using the old skin.
  • SetPlayerName - If you set to the same name but some letters are in a different case it doesn't work (eg "heLLO" to "hello").
  • GetPlayerWeapon - If you are in a vehicle and change weapon using SetPlayerArmedWeapon, it returns the old weapon ID.
  • ForceClassSelection - It only resets the variable when the player dies, not if he respawns (SpawnPlayer, TogglePlayerControllable 0).
  • RemovePlayerFromVehicle - It only shows the 'exit vehicle' animation for the player being removed.
  • GetPlayerSpecialAction - SPECIAL_ACTION_SITTING and SPECIAL_ACTION_EXIT_VEHICLE don't work.
  • SetPlayerCheckpoint - If a checkpoint is already set it will use the size of that checkpoint instead of the new one.
  • SetPlayerRaceCheckpoint - See SetPlayerCheckpoint.
  • SetPlayerWorldBounds - If you hold down the aim key you can walk through world boundries.
  • IsPlayerInCheckpoint - Variable isn't initiated until a checkpoint has been set so it returns a undetermined value.
  • IsPlayerInRaceCheckpoint - See IsPlayerInCheckpoint.
  • TogglePlayerSpectating - Spectating breaks if the target leaves their stream zone (teleport, enter interior).
a_samp.inc
  • SetTimerEx - Arrays and strings do not work correctly - they will always pass only one string.
  • GetWeaponName - Returns null for ids 18 (Molotov Cocktail), 44 (Thermal Goggles) and 45 (Night vision Goggles).
  • AllowInteriorWeapons - Doesn't work - is easilly scriptable so should be removed?
  • SetDeathDropAmount - Doesn't work - is easilly scriptable so should be removed?
  • DisableInteriorEnterExits - If the gamemode is changed the doors aren't reenabled.
  • CreateMenu - You can't change the width of column 2 it just uses the same as column 1.
  • TextDrawColor - Requires the text draw to be shown again for changes to be made.
  • TextDrawBackgroundColor - Requires the text draw to be shown again for changes to be made.
a_vehicles.inc
  • GetVehicleComponentInSlot - Doesn't work for CARMODTYPE_STEREO.
  • RepairVehicle - It doesn't work on vehicles Dune and Monster truck - maybe more.

Finn 29/10/2009 07:43 PM

Re: Complete bugs list (0.3 updated)
 
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.

Sergei 29/10/2009 08:57 PM

Re: Complete bugs list (0.3 updated)
 
Quote:

Originally Posted by Finn
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.

Weapon data isn't being updated when player is in vehicle, so not much can be done for that.

beckzy 29/10/2009 09:18 PM

Re: Complete bugs list (0.3 updated)
 
Quote:

Originally Posted by Finn
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.

It works fine for me.

Burridge 29/10/2009 10:36 PM

Re: Complete bugs list (0.3 updated)
 
SetPlayerHealth(playerid, 0.0); (Killing the player basically) dosn't work properly, it sets the player's HP to 0 just fine, but the player on his screen, can still run around, but the player is de-sycned for everyone else. You can jump of somthing high (Ish) or slap yourself (Admin command) to die properly.

This bug also accurs if they are still alive, but have fallen of somthing high.

The bug seems to be instant death basically.

Jay_ 29/10/2009 10:37 PM

Re: Complete bugs list (0.3 updated)
 
Quote:

Originally Posted by $ЯĢ
Weapon data isn't being updated when player is in vehicle, so not much can be done for that.

Off course it is. How do you think GTA know's when you've ran out of ammo when you driveby someone?

Finn 30/10/2009 09:42 AM

Re: Complete bugs list (0.3 updated)
 
Quote:

Originally Posted by BeckzyBoi
Quote:

Originally Posted by Finn
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.

It works fine for me.

Huh, when I use ResetPlayerWeapons and then check the weapons with GetPlayerWeaponData, it still shows the weapons even though I have reset the player's weapons.

Joe Staff 05/11/2009 03:54 PM

Re: Complete bugs list (0.3 updated)
 
In the Dialog Input box, you can exceed the maximum limit by 'pasting' (CTRL+V), but it still doesn't show up as a returned string.

mprofitt 14/11/2009 06:02 PM

Re: Complete bugs list (0.3 updated)
 
Quote:

Originally Posted by Finn
Quote:

Originally Posted by BeckzyBoi
Quote:

Originally Posted by Finn
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.

It works fine for me.

Huh, when I use ResetPlayerWeapons and then check the weapons with GetPlayerWeaponData, it still shows the weapons even though I have reset the player's weapons.

I see this exact issue with RestPlayerWeapons. Is there a work around?


beckzy 14/11/2009 07:01 PM

Re: Complete bugs list (0.3 updated)
 
Quote:

Originally Posted by mprofitt
Quote:

Originally Posted by Finn
Quote:

Originally Posted by BeckzyBoi
Quote:

Originally Posted by Finn
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.

It works fine for me.

Huh, when I use ResetPlayerWeapons and then check the weapons with GetPlayerWeaponData, it still shows the weapons even though I have reset the player's weapons.

I see this exact issue with RestPlayerWeapons. Is there a work around?


It is supposed to. Check if there is any ammo for the weapon.


All times are GMT. The time now is 02:00 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.