Jump to content
  • 0

Problema UPDATE in baza de date



Salut, ma numesc Serban, am 13 ani, am deschis acest topic pentru ca am nevoie de putin ajutor, stiu, sunt cersetor dar nu am o vaga idee de ce UPDATE-ul din Baza de date seteaza la toti jucatorii(Nu, n-am folosit un loop de for(i max players) ca sa fac acest lucru), pur si simplu seteaza la toti jucatorii valoarea care le-am acordat-o unui singur jucator, cum am eu scris "id".



"mysql_format(handle, query, sizeof(query), "UPDATE `conturi` SET `blabla`='%d'", PlayerInfo[playerid][blabla]);
 mysql_query(handle, query);"


Va rog daca puteti sa ma lamuriti de ce, va multumesc pentru ajutorul acordat!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

mysql_format(handle, query, sizeof(query), "UPDATE `conturi` SET `Admin` = '%d' WHERE 'ID' = '%d'", PlayerInfo[id][pAdmin], PlayerInfo[id][pID]);
mysql_tquery(handle, query); 


Asta e sintaxa care am folosit-o, daca am scris ceva gresit, sa ma corectati, multumesc.

Link to comment
Share on other sites

  • 0

MERSI, Banditule, sa te ajuta dumnezeu cu toata miruirea ta, best scripter coae mersi sa te ajute miezau nimeni nu a stiut si numa tu ai putut sa ma ajuti in totalitate, multumesc, probabil asta este primul si ultimul ajutor care o sa am nevoie deoarece am samp.wiki si ce mai e pe forumuri, multumesc, respect, da-mi add pe discord Witz#0544!


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.

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.