SA-MP Forums Archive
[Ajuda] Mysql "UPDATE" query - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Mysql "UPDATE" query (/showthread.php?tid=485898)



Mysql "UPDATE" query - Mr.Hardy - 06.01.2014

Este cуdigo:

pawn Code:
callBack::SaveInfoSvr(){
    new saveQuery[48];
    format(saveQuery,sizeof(saveQuery),"UPDATE `servervar` SET totalvipson='%d',totaladminson='%d',totalvips='%d',totalgangs='%d',totalbans='%d',totalkicks='%d',totallogins='%d',totalregistrados='%d'",ServerVar[totalvipson],ServerVar[totaladminson],ServerVar[totalvips],ServerVar[totalgangs],ServerVar[totalbans],ServerVar[totalkicks],ServerVar[totallogins],ServerVar[totalregistrados]);
    mysql_function_query(mysql, saveQuery, false, "", "");
    return true;
}
Estб resultando em (e nгo estб salvando):

Quote:

[12:50:44] >> mysql_query_callback( Connection handle: 1 )
[12:50:44] Passing query UPDATE `servervar` SET totalvipson='0',totaladm |
[12:50:44] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError()




Re: Mysql "UPDATE" query - Mandrakke - 06.01.2014

Mude

pawn Code:
new saveQuery[48];
para

pawn Code:
new saveQuery[512];



Re: Mysql "UPDATE" query - Mr.Hardy - 06.01.2014

Eu resolvi logo em seguida rs. Mais fica o REP;