Complete scripting bugs list (0.3 updated)
#1

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.
Reply
#2

ResetPlayerWeapons(playerid);

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

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

Quote:
Originally Posted by Finn
ResetPlayerWeapons(playerid);

- Doesn't have effect on players which are in a vehicle.
It works fine for me.
Reply
#5

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.
Reply
#6

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

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.
Reply
#8

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.
Reply
#9

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?

Reply
#10

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.
Reply
#11

Quote:
Originally Posted by BeckzyBoi
It is supposed to. Check if there is any ammo for the weapon.
It is not supposed to have different effect on foot than in vehicle, that's for sure. Either it's a GTA bug or SA-MP bug, it doesn't matter.

ResetPlayerWeapons isn't doing what it should.
Reply
#12

RepairVehicle body does not work on monster truck
Reply
#13

Quote:
Originally Posted by -8oHd4N-
RepairVehicle body does not work on monster truck
Your right, it doesn't.

I actually never used it on Monster Trucks until 5 seconds ago.
Reply
#14

SetPlayerPosFindZ doesn't seem to be working for NPCs. I have tried various things about that and it just doesn't move NPC anywhere while SetPlayerPos does.


EDIT (12.12.09):

OnPlayerRequestClass is called two times when selecting it with shift but you restrict spawn under OnPlayerRequestSpawn. If you click on spawn button it's called only one time as it is supposed it.
Reply
#15

Quote:
Originally Posted by Finn
CreatePlayer3DTextLabel does not work after server restart (gmx).

When the player re-joins the server CreatePlayer3DTextLabel starts working fine again, but if the player is in the server over the restart it doesn't work anymore.
Reply
#16

Quote:
Originally Posted by Finn
Quote:
Originally Posted by BeckzyBoi
It is supposed to. Check if there is any ammo for the weapon.
It is not supposed to have different effect on foot than in vehicle, that's for sure. Either it's a GTA bug or SA-MP bug, it doesn't matter.

ResetPlayerWeapons isn't doing what it should.
My opion
There's no such a function calls ResetPlayerWeaponData but calls ResetPlayerWeapons
Reply
#17

Police vehicle lights (red & blue) dont get updated onVehicleStreamIn() if no driver is in, which means if you leave a police vehicle with lights on and go out of range and come back in range (onVehicleStreamIn()) the lights are off although they where left on. As we cant control these lights with a function it cant be corrected scriptwise in onVehicleStreamIn() and makes it impossible to see if the vehicle is in code 3 or just stopped for any normal reason.
Reply
#18

This is more of a 0.3 client bug..
When You reach the max number of letters in a line it passes your screen instead of making a new line.. or is that what \n is for?
Reply
#19

fseek does not work after using fread/fwrite/fgetchar/freadblock etc.
Reply
#20

i have it so that when a vehicle streams in it auto mod's them witch works fine, but when i make it so that rims go onto a monster truck but it dosen't work anymore it used to now it just doesn't work nomore since 0.3 r4. my codes fine trust me i know if you want to see it ill show you it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)