Merge pull request #9 from dusan01/fixes/c4

Fixed C4 bug
This commit is contained in:
Lorenc Pekaj 2019-05-31 21:34:01 +10:00 committed by GitHub
commit 618aedc841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,6 +366,6 @@ stock SetPlayerC4Amount( playerid, amount ) {
stock GivePlayerC4( 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 ); SetPlayerC4Amount( playerid, GetPlayerC4Amount( playerid ) + amount );
} }