[Ajuda] Mysql "UPDATE" query
#1

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()

Reply
#2

Mude

pawn Code:
new saveQuery[48];
para

pawn Code:
new saveQuery[512];
Reply
#3

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


Forum Jump:


Users browsing this thread: 2 Guest(s)