Rup Tot Posted July 9, 2022 Author Posted July 9, 2022 (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 July 9, 2022 by Rup Tot
qSorin_ Posted July 9, 2022 Posted July 9, 2022 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;
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now