SA-MP Forums Archive
[Include] [INC]Bug fixer v0.2.0(2009/07/27) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]Bug fixer v0.2.0(2009/07/27) (/showthread.php?tid=80755)



[INC]Bug fixer v0.2.0(2009/07/27) - yezizhu - 06.06.2009

[Bug fixer]

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

[Bug fix list]



Function
Bug description

Still "alive" if someone dies in fire.

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

Always returns NO_TEAM (255)

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

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

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

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

Returns 0 unless SetPlayerColor has been used

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

Doesn't work

Doesn't work.

Return null for ids 18, 44 and 45

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

Doesn't work if the player is in a vehicle

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

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

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

Useless of x,y,z

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

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

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


Re: [INC]Bug fixer v0.1 - XeoN_13 - 06.06.2009

nice


Re: [INC]Bug fixer v0.1 - russiany - 06.06.2009

great job


Re: [INC]Bug fixer v0.1 - dice7 - 06.06.2009

PlayPlaySound will now play the sound on a specific location ?


Re: [INC]Bug fixer v0.1 - yezizhu - 06.06.2009

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;
}



Re: [INC]Bug fixer v0.1 - Burridge - 06.06.2009

Nice work. :O

Is this even possible? Does it work?


Re: [INC]Bug fixer v0.1 - RenisiL - 06.06.2009

how here use inculde


Re: [INC]Bug fixer v0.1 - _Raven - 06.06.2009

OMG, it what I needed.

Thanks!


Re: [INC]Bug fixer v0.1 - Rks25 - 06.06.2009

Nice includee.


Re: [INC]Bug fixer v0.1 - yezizhu - 06.06.2009

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^^