Jump to content
  • 0

Salut ,Sunt nou in scripting si as vrea sa ma ajutati cu ceva


Question

Posted

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

4 answers to this question

Recommended Posts

  • 1
Posted

 

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

  • 0
Posted

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, "", "");

  • 0
Posted
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?

  • 0
Posted

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

 

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.