Jump to content

Recommended Posts

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.