VLM Posted November 27, 2017 Report Share Posted November 27, 2017 Cum pot face o comanda prin care quest-ul sa fie resetat la toti playerii ? Quote #retras Link to comment Share on other sites More sharing options...
0 InceMan Posted November 27, 2017 Report Share Posted November 27, 2017 din cate stiu nu se ofera asemenea scripturi gata facute macar incearca sa faci tu singur si te ajutam unde intapini o problema Quote FiveGame Lands Pawno Developer, Mapping , Scripter Since 2016 Link to comment Share on other sites More sharing options...
0 KripToN. Posted November 27, 2017 Report Share Posted November 27, 2017 Acum 1 oră, VLM a spus: Cum pot face o comanda prin care quest-ul sa fie resetat la toti playerii ? Uite in gamemode tot ce este legat de quest, si incearca sa-ti dai seama cum sa faci comanda. Quote Link to comment Share on other sites More sharing options...
0 valivaly96 Posted November 28, 2017 Report Share Posted November 28, 2017 Acum 10 ore, VLM a spus: Cum pot face o comanda prin care quest-ul sa fie resetat la toti playerii ? 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 Quote Link to comment Share on other sites More sharing options...
0 VLM Posted November 28, 2017 Author Report Share Posted November 28, 2017 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? Quote #retras Link to comment Share on other sites More sharing options...
0 valivaly96 Posted November 28, 2017 Report Share Posted November 28, 2017 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,"",""); Quote Link to comment Share on other sites More sharing options...
0 MiritaXD Posted November 28, 2017 Report Share Posted November 28, 2017 (edited) 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 November 28, 2017 by MiritaXD Quote Link to comment Share on other sites More sharing options...
0 VLM Posted November 29, 2017 Author Report Share Posted November 29, 2017 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. Quote #retras Link to comment Share on other sites More sharing options...
0 MiritaXD Posted November 29, 2017 Report Share Posted November 29, 2017 Chiar acum, VLM a spus: 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. Pai arata si tu variabilele, nu avem de unde sa stim ce ai tu in gm.. Quote Link to comment Share on other sites More sharing options...
0 VLM Posted November 29, 2017 Author Report Share Posted November 29, 2017 (edited) 1 hour ago, MiritaXD said: Pai arata si tu variabilele, nu avem de unde sa stim ce ai tu in gm.. Ce variabile? Edited November 29, 2017 by VLM Quote #retras Link to comment Share on other sites More sharing options...
0 BuNiCu-RP Posted December 14, 2017 Report Share Posted December 14, 2017 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 * = *;" Quote Link to comment Share on other sites More sharing options...
Question
VLM
Cum pot face o comanda prin care quest-ul sa fie resetat la toti playerii ?
#retras
Link to comment
Share on other sites
10 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.