From a15157a835956990f4b4038f86dd60a96ce5c37f Mon Sep 17 00:00:00 2001 From: Dusan Date: Fri, 31 May 2019 12:26:26 +0200 Subject: [PATCH] Fixed C4 bug --- gamemodes/irresistible/cnr/features/c4.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/c4.pwn b/gamemodes/irresistible/cnr/features/c4.pwn index 84ce6a3..481c788 100644 --- a/gamemodes/irresistible/cnr/features/c4.pwn +++ b/gamemodes/irresistible/cnr/features/c4.pwn @@ -366,6 +366,6 @@ stock SetPlayerC4Amount( playerid, amount ) { stock GivePlayerC4( playerid, amount ) { - mysql_single_query( sprintf( "UPDATE `USERS` SET `C4` = %d WHERE `ID` = %d", p_C4Amount[ playerid ], GetPlayerAccountID( playerid ) ) ); + mysql_single_query( sprintf( "UPDATE `USERS` SET `C4` = %d WHERE `ID` = %d", GetPlayerC4Amount( playerid ) + amount, GetPlayerAccountID( playerid ) ) ); SetPlayerC4Amount( playerid, GetPlayerC4Amount( playerid ) + amount ); } \ No newline at end of file