View Single Post
Old 06/01/2019, 07:24 PM   #1
enzulikeS
Big Clucker
 
Join Date: Jan 2018
Posts: 156
Reputation: 0
Default why doesnt update in database

Code:
CMD:getgift(playerid, params[]) {
	if(GiftBoxInfo[playerid][pGiftBoxOn] == 0) return SCM(playerid, -1, "Giftbox-ul nu este activ..");
    if(IsPlayerInRangeOfPoint(playerid, 5.0, GiftBoxInfo[playerid][pGiftBoxPosX], GiftBoxInfo[playerid][pGiftBoxPosY], GiftBoxInfo[playerid][pGiftBoxPosZ])) 
    {
		new rand = random(11); new zzString[128] = EOS;
		switch(rand) {
			case 0..5: {
				SCM(playerid, -1, "{008080}(GIFTBOX){FFFFFF}: Felicitari! Ai deschis giftbox-ul si ai castigat 10.000.000$.");
				GivePlayerCash(playerid, 10000000);
				Update(playerid, pCashx);
				mysql_format(SQL,zzString,sizeof(zzString),"UPDATE giftboxd SET `GiftBoxMoney`='%s'", GiftBoxInfo[playerid][pGiftBoxMoney]);
				mysql_tquery(SQL,zzString,"","");
			}

mysql_format(SQL,zzString,sizeof(zzString),"UPDATE giftboxd SET `GiftBoxMoney`='%s'", GiftBoxInfo[playerid][pGiftBoxMoney]);

this thing does not update in database, no errors in console..
enzulikeS is offline   Reply With Quote