[Off] mysql help
#1

alguem sabe pq quando eu compro a casa n insere no banco de dados la comeзa com o id 1 pra cima

ai quando eu coloco x = 0
pawn Код:
for (new x = 0; x <= HOUSES_MAX; ++x)
O comando funciona mas n insere

quando eu coloco x = 1
pawn Код:
for (new x = 1; x <= HOUSES_MAX; ++x)
funciona mas so insere no banco de dados os id acima de 1

pawn Код:
CMD:comprarcasa(playerid)
{
    for (new x = 0; x <= HOUSES_MAX; ++x)
 {
        if (IsPlayerInRangeOfPoint(playerid, 2.0, hInfo[x][localX], hInfo[x][localY], hInfo[x][localZ]))
  {
            new Celulas[128];
            format(hInfo[x][ownerHouse],21,"%s",nick(playerid));
            new SQLQuery[250];
            format(SQLQuery, 250, "UPDATE houses SET Owner = '%s' WHERE ID = '%d'", nick(playerid), x);
            mysql_function_query(conexao, SQLQuery, false, #, #);
      }
  }
  return 1;
}
alguem me da um help
obg
Reply


Messages In This Thread
mysql help - by xGamminG - 16.09.2013, 01:05
Re: mysql help - by xGamminG - 16.09.2013, 01:51
Re: mysql help - by ReDKiiL - 16.09.2013, 06:31
Re: mysql help - by Falcon. - 16.09.2013, 13:16
Re: mysql help - by xGamminG - 16.09.2013, 16:01

Forum Jump:


Users browsing this thread: 2 Guest(s)