Jump to content
  • 0

Intrebare - Quest


VLM

Question

10 answers to this question

Recommended Posts

  • 0
9 hours ago, valivaly96 said:

Ar trebuii sa resetezi variabilele quest1, quest2 etc. Asta in mare, fiind posibil sa fie si alte variabile care au legatura cu qestul si trebuiesc Resetate. Variabilele quest1, quest2 s.a.m.d se pun pe 0

Am in tab-ul users quest1.. etc, o comanda pentru asta?

#retras

Link to comment
Share on other sites

  • 0
Acum 5 ore, VLM a spus:

Am in tab-ul users quest1.. etc, o comanda pentru asta?

Pur si simplu nu poti face un for si un query ca sa pui acele variabile pe 0?

for(new i=0;i<MAX_PLAYERS;i++)

{

PlayerInfo[pQuest1] =0;}s.a.m.d

new query[1000];

format(query,1000,"UPDATE users SET quest1=0,quest2=0 s.a.m.d");

mysql_tquery(handle,query,"","");

Link to comment
Share on other sites

  • 0

CMD:blabla(playerid, params[])
{
    mysql_tquery(SQL,"UPDATE `users` SET `Quest1` = '0', `Quest2` = '0', `QuestProgress1`='0', `QuestProgress2`='0'","","");
    foreach(new z : Player)
    {
        PlayerInfo[z][pQuest1] = 0;
        PlayerInfo[z][pQuest2] = 0;
        PlayerInfo[z][pQuestProgress1] = 0;
        PlayerInfo[z][pQuestProgress2] = 0;
        Update(z, pQuest1x);
        Update(z, pQuest2x);
        Update(z, pQuestNeed1x);
        Update(z, pQuestNeed2x);
    }
}

Edited by MiritaXD
Link to comment
Share on other sites

  • 0
16 hours ago, valivaly96 said:

Pur si simplu nu poti face un for si un query ca sa pui acele variabile pe 0?

for(new i=0;i<MAX_PLAYERS;i++)

{

PlayerInfo[pQuest1] =0;}s.a.m.d

new query[1000];

format(query,1000,"UPDATE users SET quest1=0,quest2=0 s.a.m.d");

mysql_tquery(handle,query,"","");

 

14 hours ago, MiritaXD said:

 


CMD:blabla(playerid, params[])
{
    mysql_tquery(SQL,"UPDATE `users` SET `Quest1` = '0', `Quest2` = '0', `QuestProgress1`='0', `QuestProgress2`='0'","","");
    foreach(new z : Player)
    {
        PlayerInfo[z][pQuest1] = 0;
        PlayerInfo[z][pQuest2] = 0;
        PlayerInfo[z][pQuestProgress1] = 0;
        PlayerInfo[z][pQuestProgress2] = 0;
        Update(z, pQuest1x);
        Update(z, pQuest2x);
        Update(z, pQuestNeed1x);
        Update(z, pQuestNeed2x);
    }
}

 

Daca o completez eu de la quest1 la quest 49 imi da erori..

Imi puteti face voi ? am 49 de quest-uri..

Va rog frumos.

#retras

Link to comment
Share on other sites

  • 0
CMD:resetq(playerid, params[]) {
    new sql[128];
    mysql_format(g_SQL, sql, sizeof(sql), "UPDATE accounts SET accounts.QuestID0 = 0, accounts.QuestID1 = 0");
    mysql_tquery(g_SQL, sql, "", "");
    printf("Quest resetat la toti jucatori inregistrati");
    return 1;
}

Ce e asa de greu? Cauti variabilele pentru quest in tabel conturi si le setezi pe o, fara a folosi "WHERE * = *;"

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.