Jump to content
  • 0

Question

Posted (edited)

http://pastebin.com/SPWrH1qS

deci daca i.mi setez 20 punctegift si dau /getgift apare ca am 20 de punde ei daca es de pe server si intru iar nu-mi mai apare ca am 20 si apare ca am 0 dar in baza de date am 20 cum pot rezolva asta ?

Edited by Pitbul97

14 answers to this question

Recommended Posts

  • 0
Posted

ok incearca sa pui asa  Update(playerid,pGift);

finca se salveaza doar in PlayerInfo[playerid][pGift],   

  • Upvote 2

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted
On 12/11/2016 at 6:43 PM, Pitbul97 said:

http://pastebin.com/SPWrH1qS

deci daca i.mi setez 20 punctegift si dau /getgift apare ca am 20 de punde ei daca es de pe server si intru iar nu-mi mai apare ca am 20 si apare ca am 0 dar in baza de date am 20 cum pot rezolva asta ?

Sursa la punctele de gift,pune-o aici.

  • 0
Posted

finca comanda care o aveti nu comunica si cu baza de date  doar cu serverul posibil nu ai comanda bine facuta ca sa comunice si cu baza de date, mai mult tie nu-ti salveaza  acele 20 de puncte incearca sa ii pui ceva de genul Update(id,pPremiumPointsx);

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted (edited)

este 

Update(playerid,pGiftx);

nu cumva trebuie Update(playerid,pGift); fara x

 

la /getgift nu este Update(playerid,pGiftx); trb sa adaug ?

Edited by Pitbul97
  • 0
Posted
Acum 4 minute, Pitbul97 a spus:

este 

Update(playerid,pGiftx);

nu cumva trebuie Update(playerid,pGift); fara x

 

la /getgift nu este Update(playerid,pGiftx); trb sa adaug ?

aratane ce aveti la public Update(playerid

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted

  if(gPlayerLogged[playerid] != 0)
    {
        Update(playerid, pConnectTimex);
        Update(playerid, pBank);
        Update(playerid, pCashx);
        Update(playerid, pRP);
        Update(playerid, pGiftx);
        Update(playerid, pCasesShopx);
        Update(playerid, pKeyShopx);
        Update(playerid, pPayDayx);
        Update(playerid, pJailTimex);

  • 0
Posted

case pGiftx:
                {
                    format(var, sizeof(var), "UPDATE `users` SET `Gift`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pGift], PlayerInfo[playerid][pNormalName]);
                    mysql_query(SQL ,var);
                }

  • 0
Posted
Acum 4 minute, Pitbul97 a spus:

case pGiftx:
                {
                    format(var, sizeof(var), "UPDATE `users` SET `Gift`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pGift], PlayerInfo[playerid][pNormalName]);
                    mysql_query(SQL ,var);
                }

si la baza de date ai tabelul  Gift ?

  • Upvote 1

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
  • Administrator
Posted
On 16.12.2016 at 6:25 PM, Pitbul97 said:

unde la comanda sau la public

Unde ii dai jucatorului punectele, acolo trebuie pus.

  • Upvote 1
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.