06.01.2019, 19:24
Код:
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,"","");
}
this thing does not update in database, no errors in console..


