Jump to content

Ajutor erori


Rup Tot

Recommended Posts

Cum pot sa fac sa imi scada 250 ep din punctele actuale nu sa imi seteze punctele pe - 250

         

 

case 9:
        {
            if(!response)
                return SCM(playerid, COLOR_SERVER, "SERVER: {FFFFFF}Meniul a fost inchis.");
            {
            if(response)
            {
                if(PlayerInfo[playerid][pExclusivePoints] < 250)
                    return SCM(playerid, 0xB1BFCC80, "EROARE: Nu deti destule Exclusive Points.");

                SCM(playerid, COLOR_YELLOW, "(!) Ti-ai achizitionat 'Exclusive account' pentru 250 EP.");
                PlayerInfo[playerid][pExclusiveAccount] = 1;
                PlayerInfo[playerid][pExclusivePoints] =- 250;

                mysql_format(handle, query, sizeof(query), "UPDATE conturi SET `ExclusiveAccount` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pExclusiveAccount], PlayerInfo[playerid][pID]);
                mysql_tquery(handle, query);

                mysql_format(handle, query, sizeof(query), "UPDATE conturi SET `ExclusivePoints` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pExclusivePoints], PlayerInfo[playerid][pID]);
                mysql_tquery(handle, query);
            }
            }
            return 1;
        }
    }
    return 1;
}

Edited by Rup Tot
Link to comment
Share on other sites

2 hours ago, Rup Tot said:

Cum pot sa fac sa imi scada 250 ep din punctele actuale nu sa imi seteze punctele pe - 250

         

 

case 9:
        {
            if(!response)
                return SCM(playerid, COLOR_SERVER, "SERVER: {FFFFFF}Meniul a fost inchis.");
            {
            if(response)
            {
                if(PlayerInfo[playerid][pExclusivePoints] < 250)
                    return SCM(playerid, 0xB1BFCC80, "EROARE: Nu deti destule Exclusive Points.");

                SCM(playerid, COLOR_YELLOW, "(!) Ti-ai achizitionat 'Exclusive account' pentru 250 EP.");
                PlayerInfo[playerid][pExclusiveAccount] = 1;
                PlayerInfo[playerid][pExclusivePoints] =- 250;

                mysql_format(handle, query, sizeof(query), "UPDATE conturi SET `ExclusiveAccount` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pExclusiveAccount], PlayerInfo[playerid][pID]);
                mysql_tquery(handle, query);

                mysql_format(handle, query, sizeof(query), "UPDATE conturi SET `ExclusivePoints` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pExclusivePoints], PlayerInfo[playerid][pID]);
                mysql_tquery(handle, query);
            }
            }
            return 1;
        }
    }
    return 1;
}

PlayerInfo[playerid][pExclusivePoints] -= 250;

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

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