Jump to content
  • 0

Problema salvarea in baza de date


GEORGIKAA

Question

Am incercat sa fac recent un sistem de crates insa am intampinat o problema la salvarea in baza de date, mai exact nu se salveaza atunci cand le achizitionezi si dai /q.

 

In baza de date am adaugat urmatoarele: NormalCrate, INT(11), default as none

 

aici e codul din script prin care ar trebui sa adauge salvarea in baza de date

if(dialogid == DIALOG_NORMALCRATE)
  	{
    	if(response)
    	{
    		switch(listitem) 
    		{
      			case 0: 
      			{
        			SendClientMessage(playerid, -1, "in lucru");
      			}
      			case 1: 
      			{
        			if(PlayerInfo[playerid][pPremiumPoints] < 100) return SCM(playerid, -1, "{008080}>> NORMAL CRATE: {FFFFFF}You don't have 100 premium points.");
        			PlayerInfo[playerid][pPremiumPoints] -= 100;
        			Update(playerid, pPremiumPoints);
        			PlayerInfo[playerid][pNormalCrate] ++;
        			Update(playerid, pNormalCrate);
        			SCM(playerid, -1, "{008080}>> CRATES: {FFFFFF}You succesfully bought a NORMAL crate for 100 premium points.");
      			}       
    		}
  		}
  	}

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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