faze amuzante Posted August 3, 2021 Report Share Posted August 3, 2021 Salut, am facut o comanda de /bonus dar nu se salveaza level-ul in baza de date gm hpq123,ajutorrr comanda: CMD:bonus(playerid, params[]) { if(PlayerInfo[playerid][pLevel] == 1) { GivePlayerCash(playerid, 1, 10000000000); PlayerInfo[playerid][pLevel] = 3; SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level 3 + 100.000.000$ !"); } return 1; } Quote Link to comment Share on other sites More sharing options...
1 seek nephrite Posted August 3, 2021 Report Share Posted August 3, 2021 CMD:bonus(playerid, params[]) { if(PlayerInfo[playerid][pLevel] == 1) { GivePlayerCash(playerid, 1, 10000000000); PlayerInfo[playerid][pLevel] = 3 SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level 3 + 100.000.000$ !"); mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Level`='3' WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", ""); } return 1; } Quote Link to comment Share on other sites More sharing options...
0 Toader Mihai Posted August 3, 2021 Report Share Posted August 3, 2021 salut, foloseste si asta mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Level`='3' WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", ""); Quote Link to comment Share on other sites More sharing options...
0 faze amuzante Posted August 3, 2021 Author Report Share Posted August 3, 2021 2 hours ago, Toader Mihai said: salut, foloseste si asta mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `users` SET `Level`='3' WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, gQuery, "", ""); Ma poti ajuta sa il pun in comanda? Quote Link to comment Share on other sites More sharing options...
0 LucianSGS225 Posted August 3, 2021 Report Share Posted August 3, 2021 CMD:bonus(playerid, params[]) { if(PlayerInfo[playerid][pLevel] == 1) { GivePlayerCash(playerid, 1, 10000000000); Update(playerid, pCashx); PlayerInfo[playerid][pLevel] = 3; Update(playerid, pLevelx); SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level 3 + 100.000.000$ !"); } return 1; } ia vezi acm, ti-am pus sa se salveze si banii in baza Quote Link to comment Share on other sites More sharing options...
Question
faze amuzante
Salut, am facut o comanda de /bonus dar nu se salveaza level-ul in baza de date gm hpq123,ajutorrr
comanda:
CMD:bonus(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] == 1)
{
GivePlayerCash(playerid, 1, 10000000000);
PlayerInfo[playerid][pLevel] = 3;
SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level 3 + 100.000.000$ !");
}
return 1;
}
Link to comment
Share on other sites
4 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.