Complete scripting bugs list (0.3 updated)
#48

GetPlayerAmmo nearly always return value from previous weapon slot if you scroll weapons very quickly. Even GetPlayerWeaponData is better in that case.

GetPlayerWepaonState uses GetPlayerAmmo for it's check ans since GetPlayerAmmo values are usually wrong we get wrong weapon state.

If you use GivePlayerWeapon/SetPlayerAmmo on existing weapon which you have in active weapon slot, GetPlayerWeaponData won't retrieve right ammo value on next OnPlayerUpdate (it will return old value).
For example, I have AK47 with 50 ammo and I use GivePlayerWeapon to give myself M4 -> everything alright.
And if I have AK47 with 50 ammo and use GivePlayerWeapon/SetPlayerAmmo to give you some more ammo GetPlayerWeaponData will return old value on first update.
Reply


Messages In This Thread
Complete scripting bugs list (0.3e updated) - by beckzy - 27.12.2008, 18:09
Re: Complete bugs list (0.3 updated) - by Finn - 29.10.2009, 19:43
Re: Complete bugs list (0.3 updated) - by Sergei - 29.10.2009, 20:57
Re: Complete bugs list (0.3 updated) - by beckzy - 29.10.2009, 21:18
Re: Complete bugs list (0.3 updated) - by Burridge - 29.10.2009, 22:36
Re: Complete bugs list (0.3 updated) - by Jay_ - 29.10.2009, 22:37
Re: Complete bugs list (0.3 updated) - by Finn - 30.10.2009, 09:42
Re: Complete bugs list (0.3 updated) - by Joe Staff - 05.11.2009, 15:54
Re: Complete bugs list (0.3 updated) - by mprofitt - 14.11.2009, 18:02
Re: Complete bugs list (0.3 updated) - by beckzy - 14.11.2009, 19:01
Re: Complete bugs list (0.3 updated) - by Finn - 16.11.2009, 11:45
Re: Complete bugs list (0.3 updated) - by -8oHd4N- - 21.11.2009, 10:57
Re: Complete bugs list (0.3 updated) - by Karlip - 21.11.2009, 13:39
Re: Complete bugs list (0.3 updated) - by Sergei - 30.11.2009, 17:05
Re: Complete bugs list (0.3 updated) - by Finn - 19.12.2009, 11:42
Re: Complete bugs list (0.3 updated) - by yezizhu - 24.12.2009, 22:57
Re: Complete bugs list (0.3 updated) - by hansen111 - 29.12.2009, 02:37
Re: Complete bugs list (0.3 updated) - by HydraX - 10.01.2010, 23:15
Re: Complete bugs list (0.3 updated) - by De[M]oN - 18.01.2010, 18:41
Re: Complete bugs list (0.3 updated) - by shady91 - 20.01.2010, 17:32
Re: Complete bugs list (0.3 updated) - by Blefish - 01.02.2010, 13:05
Re: Complete scripting bugs list (0.3 updated) - by Calgon - 09.02.2010, 02:03
Re: Complete scripting bugs list (0.3 updated) - by gesior7 - 14.02.2010, 20:50
Re: Complete scripting bugs list (0.3 updated) - by beckzy - 14.02.2010, 21:06
Re: Complete scripting bugs list (0.3 updated) - by gesior7 - 14.02.2010, 21:23
Re: Complete scripting bugs list (0.3 updated) - by Damian - 24.03.2010, 13:33
Re: Complete scripting bugs list (0.3 updated) - by JernejL - 24.03.2010, 13:54
Re: Complete scripting bugs list (0.3 updated) - by Google63 - 28.03.2010, 11:55
Re: Complete scripting bugs list (0.3 updated) - by [03]Garsino - 30.03.2010, 11:36
Re: Complete scripting bugs list (0.3 updated) - by beckzy - 04.04.2010, 08:54
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 04.04.2010, 09:10
Re: Complete scripting bugs list (0.3 updated) - by [03]Garsino - 04.04.2010, 11:51
Re: Complete scripting bugs list (0.3 updated) - by WackoX - 05.04.2010, 09:24
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 13.04.2010, 16:48
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 13.04.2010, 16:56
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 13.04.2010, 17:05
Re: Complete scripting bugs list (0.3 updated) - by KevKo95 - 13.04.2010, 22:13
Re: Complete scripting bugs list (0.3 updated) - by DANGER1979 - 15.04.2010, 06:35
Re: Complete scripting bugs list (0.3 updated) - by gesior7 - 20.04.2010, 09:02
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 20.04.2010, 17:56
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 02.05.2010, 16:57
Re: Complete scripting bugs list (0.3 updated) - by [03]Garsino - 03.05.2010, 20:02
Re: Complete scripting bugs list (0.3 updated) - by nemesis- - 23.05.2010, 00:01
Re: Complete scripting bugs list (0.3 updated) - by Andy_McKinley - 23.05.2010, 10:32
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 30.05.2010, 15:28
Re: Complete scripting bugs list (0.3 updated) - by Kyle_Johnson - 31.05.2010, 12:10
Re: Complete scripting bugs list (0.3 updated) - by Andy_McKinley - 05.06.2010, 18:45
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 13.06.2010, 10:39
Re: Complete scripting bugs list (0.3 updated) - by nemesis- - 14.06.2010, 04:03
Re: Complete scripting bugs list (0.3 updated) - by Matthias_ - 30.08.2010, 20:59
Re: Complete scripting bugs list (0.3 updated) - by gesior7 - 05.09.2010, 19:20
Re: Complete scripting bugs list (0.3 updated) - by Cypog - 16.09.2010, 14:45
Re: Complete scripting bugs list (0.3 updated) - by sabretur - 09.10.2010, 13:01
Re: Complete scripting bugs list (0.3 updated) - by DiDok - 09.10.2010, 13:06
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 02.11.2010, 16:02
Re: Complete scripting bugs list (0.3 updated) - by Ash. - 02.11.2010, 17:18
Re: Complete scripting bugs list (0.3 updated) - by Rac3r - 03.11.2010, 09:01
Re: Complete scripting bugs list (0.3 updated) - by Lenny the Cup - 03.11.2010, 21:27
Re: Complete scripting bugs list (0.3 updated) - by CoPiW - 12.11.2010, 06:33
Re: Complete scripting bugs list (0.3 updated) - by RAEN - 20.11.2010, 08:17
AW: Complete scripting bugs list (0.3 updated) - by Meta - 21.11.2010, 03:40
Re: AW: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 21.11.2010, 21:03
AW: Complete scripting bugs list (0.3 updated) - by Meta - 21.11.2010, 21:10
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 21.11.2010, 23:52
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 17.12.2010, 21:45
Re: Complete scripting bugs list (0.3 updated) - by SaW - 17.12.2010, 23:10
Re: Complete scripting bugs list (0.3 updated) - by sabretur - 22.12.2010, 10:39
Re: Complete scripting bugs list (0.3 updated) - by vutqy - 31.12.2010, 10:21
Re : Complete scripting bugs list (0.3 updated) - by lacalau33 - 02.01.2011, 23:08
Re: Complete scripting bugs list (0.3 updated) - by Rac3r - 03.01.2011, 13:02
Re: Complete scripting bugs list (0.3 updated) - by sabretur - 09.01.2011, 13:24
Re: Complete scripting bugs list (0.3 updated) - by Rac3r - 09.01.2011, 16:14
Re: Complete scripting bugs list (0.3c updated) - by BeckzyBoi - 10.01.2011, 22:34
Re: Complete scripting bugs list (0.3 updated) - by Krx17 - 10.01.2011, 23:59
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 14.01.2011, 21:00
Re: Complete scripting bugs list (0.3 updated) - by kurta999 - 16.01.2011, 19:39
Re: Complete scripting bugs list (0.3 updated) - by Sergei - 28.01.2011, 22:15
Re: Complete scripting bugs list (0.3 updated) - by Ponchik - 18.02.2011, 21:14
Re: Complete scripting bugs list (0.3 updated) - by Miguel - 05.04.2011, 01:01
Re: Complete scripting bugs list (0.3 updated) - by leong124 - 22.05.2011, 09:03
Re: Complete scripting bugs list (0.3 updated) - by Patrik356b - 22.05.2011, 10:49
Re: Complete scripting bugs list (0.3 updated) - by Joe Staff - 22.05.2011, 13:54
Re: Complete scripting bugs list (0.3 updated) - by leong124 - 23.05.2011, 08:28
Re: Complete scripting bugs list (0.3c updated) - by beckzy - 24.05.2011, 20:38
Re: Complete scripting bugs list (0.3 updated) - by leong124 - 12.06.2011, 04:22
Re: Complete scripting bugs list (0.3 updated) - by shitbird - 21.06.2011, 20:19
Re: Complete scripting bugs list (0.3 updated) - by Robert_Crawford - 22.06.2011, 10:39
Re: Complete scripting bugs list (0.3 updated) - by shitbird - 22.06.2011, 12:55
Re: Complete scripting bugs list (0.3 updated) - by leong124 - 26.06.2011, 09:03
Re: Complete scripting bugs list (0.3 updated) - by Calgon - 26.06.2011, 14:25
Re: Complete scripting bugs list (0.3 updated) - by Calgon - 26.06.2011, 14:37
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 04.08.2011, 02:11
Re: Complete scripting bugs list (0.3 updated) - by leong124 - 04.08.2011, 03:47
AW: Complete scripting bugs list (0.3 updated) - by Arrows73 - 15.08.2011, 20:22
Re: Complete scripting bugs list (0.3 updated) - by RAEN - 19.08.2011, 11:17
Re: Complete scripting bugs list (0.3 updated) - by Kar - 20.08.2011, 22:48
Re: Complete scripting bugs list (0.3 updated) - by kurta999 - 20.08.2011, 22:51
Re: Complete scripting bugs list (0.3 updated) - by FireCat - 21.08.2011, 12:54
Re: Complete scripting bugs list (0.3 updated) - by Kar - 23.08.2011, 04:45
Re: Complete scripting bugs list (0.3 updated) - by Jon_De - 25.08.2011, 22:40
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 20.09.2011, 22:05
Re: Complete scripting bugs list (0.3 updated) - by Redirect Left - 20.09.2011, 23:17
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 20.09.2011, 23:31
Re: Complete scripting bugs list (0.3 updated) - by robintjeh - 24.10.2011, 14:57
Re: Complete scripting bugs list (0.3 updated) - by KoZaKo - 06.11.2011, 17:41
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 07.11.2011, 23:59
Re: Complete scripting bugs list (0.3 updated) - by Norn - 08.11.2011, 04:40
Re: Complete scripting bugs list (0.3 updated) - by DiDok - 22.12.2011, 19:07
Re: Complete scripting bugs list (0.3 updated) - by Y_Less - 12.04.2012, 23:49
Re: Complete scripting bugs list (0.3 updated) - by Scott - 13.04.2012, 04:53
Re: Complete scripting bugs list (0.3 updated) - by davve95 - 13.04.2012, 18:17
Re: Complete scripting bugs list (0.3 updated) - by Basssiiie - 02.05.2012, 21:19
Re: Complete scripting bugs list (0.3 updated) - by eesh - 03.05.2012, 08:49
Re: Complete scripting bugs list (0.3 updated) - by Basssiiie - 03.05.2012, 11:38
Re: Complete scripting bugs list (0.3 updated) - by Slice - 05.05.2012, 15:25
Re: Complete scripting bugs list (0.3 updated) - by Slice - 13.05.2012, 15:11
Re: Complete scripting bugs list (0.3 updated) - by BloodyEric - 13.05.2012, 15:55
Re: Complete scripting bugs list (0.3 updated) - by Kar - 13.05.2012, 16:28
Re: Complete scripting bugs list (0.3e updated) - by BGTrucker - 14.08.2013, 19:08
Re: Complete scripting bugs list (0.3 updated) - by Anzipane - 09.03.2014, 22:39
Re: Complete scripting bugs list (0.3 updated) - by hesambia - 07.09.2014, 14:11
Re: Complete scripting bugs list (0.3 updated) - by ReD_DeVi - 08.09.2014, 17:27
Respuesta: Complete scripting bugs list (0.3 updated) - by IvanAyuso - 07.10.2014, 20:56
AW: Complete scripting bugs list (0.3 updated) - by Mellnik - 17.01.2015, 20:39
Re: Complete scripting bugs list (0.3 updated) - by Matess - 18.01.2015, 09:28
Re: Complete scripting bugs list (0.3 updated) - by xerox8521 - 01.01.2016, 20:29
Re: Complete scripting bugs list (0.3 updated) - by Abagail - 02.01.2016, 00:36
Re: Complete scripting bugs list (0.3 updated) - by mobiliz - 19.01.2016, 18:19
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 05.12.2017, 08:14
Re: Complete scripting bugs list (0.3 updated) - by Freaksken - 05.12.2017, 08:55
Re: Complete scripting bugs list (0.3 updated) - by CaioTJF - 05.12.2017, 12:45
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 05.12.2017, 13:54
Re: Complete scripting bugs list (0.3 updated) - by adri1 - 05.12.2017, 13:58
Re: Complete scripting bugs list (0.3 updated) - by IstuntmanI - 05.12.2017, 14:36
Re: Complete scripting bugs list (0.3 updated) - by Admigo - 05.12.2017, 20:37
Re: Complete scripting bugs list (0.3 updated) - by Kar - 05.12.2017, 22:14
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 23.12.2017, 08:14
Re: Complete scripting bugs list (0.3 updated) - by BeckzyBoi - 28.12.2017, 17:23
Re: Complete scripting bugs list (0.3 updated) - by adri1 - 03.01.2018, 21:37

Forum Jump:


Users browsing this thread: 5 Guest(s)