[Include] [INC]Bug fixer v0.2.0(2009/07/27)
#1

[Bug fixer]

Description:
Bug fixer is to fix some PAWN-SAMP bugs.
Released version:0.2.0

[Bug fix list]



Function
Bug description

  • Fire death
Still "alive" if someone dies in fire.

  • GetPlayerMenu
If a player has closed a menu or it has been hidden for them
it will return the old menu id instead of INVALID_MENU

  • GetPlayerTeam
Always returns NO_TEAM (255)

  • IsPlayerInRaceCheckpoint
Variable isn't initiated until a checkpoint has been set
so it returns a undetermined value

  • IsPlayerInCheckpoint
Variable isn't initiated until a checkpoint has been set
so it returns a undetermined value

  • SetPlayerRaceCheckpoint
If a checkpoint is already set ,it will use the size of that checkpoint instead of the new one
Doesn't fix:If the checkpoint is set on a custom object or a non-solid surface it will show floating above the surface

  • SetPlayerCheckpoint
If a checkpoint is already set, it will use the size of that checkpoint instead of the new one
Doesn't fix:If the checkpoint is set on a custom object or a non-solid surface it will show floating above the surface

  • GetPlayerColor
Returns 0 unless SetPlayerColor has been used

  • GetPlayerWeaponData
If ammo bigger than 65534 or smalled than 0 will cause some problems

  • SetPlayerAmmo
Doesn't work

  • GetPlayerAmmo
Doesn't work.

  • GetWeaponName
Return null for ids 18, 44 and 45

  • GetPlayerInterior
When "gmx" is used and the player is reconnected it still gives the old interior id

  • SpawnPlayer
Doesn't work if the player is in a vehicle

  • floatstr
If you use a string longer than 50 (0-49) it crashes the pawn run-time

  • strval
If you use a string longer than 50 (0-49) it crashes the pawn run-time

  • strcmp
If one of the strings is empty but the other isn't,
it will return 0 (recognising them as being the same)

  • PlayerPlaySound
Useless of x,y,z

  • SetPlayerName
If you set to the same name but some letters are in a different case it doesn't work (eg "heLLO" to "hello")

  • GetVehicleTrailer
If the trailer becomes detached it still returns the trailer id instead of INVALID_VEHICLE_ID

  • AttachTrailerToVehicle
If the trailer is in a different virtual world to the vehicle all players will crash. (like when Gravity is set too high)
Note:It just prevent them from attaching when they're in different virtual world.



More info about bugs
Complete bug list.



[Note]
You can (en/dis)able the bug fix by changing false|true(In the pwn file).
pawn Код:
#define GCS_BF_FIREDEATH (true)//or (false)
If you're getting warnning 203,please add the function to current places.There're
pawn Код:
public OnGameModeInit(){
  gcs_bf_OnGameModeInit();
  return true;
}
public OnPlayerConnect(playerid){
  gcs_bf_OnPlayerConnect(playerid);
  return true;
}

public OnPlayerDeath(playerid,killerid,reason){
  gcs_bf_OnPlayerDeath(playerid);
  return true;
}

public OnPlayerSelectedMenuRow(playerid,row){
  gcs_bf_OnPlayerSelectedMenuRow(playerid);
  return true;
}

public OnPlayerExitedMenu(playerid){
  gcs_bf_OnPlayerExitedMenu(playerid);
  return true;
}
[Download]
Bug fixer v0.2.0:gcs_bugfix.inc(Please renamed to gcs_bugfix.inc)
Note:
Error "Input line too long" has been fixed.
Thanks for reporting this bug(reported by fallout,[SU]BP13).

[Bugs]
-
If you find any bug in this include.
please post here or contact us.


- GCS Team
Reply
#2

nice
Reply
#3

great job
Reply
#4

PlayPlaySound will now play the sound on a specific location ?
Reply
#5

Quote:russiany,XeoN_13
Thanks^^.

=============================================

Quote:
Originally Posted by dice7
PlayPlaySound will now play the sound on a specific location ?
No,I just make it ignore specific location.
eg:
pawn Код:
public OnPlayerSpawn(playerid){
 PlayerPlaySound(playerid,1032);//no argument warnning now
 return true;
}
Reply
#6

Nice work. :O

Is this even possible? Does it work?
Reply
#7

how here use inculde
Reply
#8

OMG, it what I needed.

Thanks!
Reply
#9

Nice includee.
Reply
#10

quote XtreaMeR:
I won't release it if does't work lol.
Also,it may have bugs itself,I'll fix known bug if has been found
===================
quote RenisiL:
Download it from pastebin to ursampfile/pawno/include,then rename to "gcs_bugfix.inc".
And then add "include <gcs_bugfix>" on the top of ur script(s).
Lastly,compiler ur script(s)
All done^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)