Jump to content
  • 0

problema giftpoint


Pitbul97

Question

14 answers to this question

Recommended Posts

  • 0
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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0

  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);

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

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.