Jump to content
  • 0

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


faze amuzante

Question

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

  • 1

 

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

Link to comment
Share on other sites

  • 0

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

 

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
Answer this question...

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