10.02.2016, 23:01
Use o debug !
PHP код:
stock SalvarCasas()
{
print("Entrei na stock SalvarCasas");
for(new houseid; houseid < MAX_HOUSES; houseid++) {
printf("Estou na Loop e Salvando a casa ID: %d", houseid);
new query[1030];
format(query, sizeof(query), "UPDATE `houses` SET `OutPosX` = '%f', `OutPosY` = '%f', `OutPosZ` = '%f', `InPosX` = '%f', `InPosY` = '%f', `InPosZ` = '%f', `World` = '%d', `Price` = '%d', `Interior` = '%d', `Locked` = '%d', `Dono` = '%s', `FHQ` = '%d', `Money` = '%d', `Maconha` = '%d', `Material` = '%d', `Owner` = '%d', `hlastlogin` = '%d' WHERE `ID` = '%i' ",
HouseInfo[houseid][OutPosX],
HouseInfo[houseid][OutPosY],
HouseInfo[houseid][OutPosZ],
HouseInfo[houseid][InPosX],
HouseInfo[houseid][InPosY],
HouseInfo[houseid][InPosZ],
HouseInfo[houseid][World],
HouseInfo[houseid][Price],
HouseInfo[houseid][Interior],
HouseInfo[houseid][Locked],
HouseInfo[houseid][Dono],
HouseInfo[houseid][FHQ],
HouseInfo[houseid][Money],
HouseInfo[houseid][Maconha],
HouseInfo[houseid][Material],
HouseInfo[houseid][Owner],
HouseInfo[houseid][hlastlogin],
houseid);
printf("Vou Mandar Para o Banco de dados a casa ID: %d", houseid);
mysql_pquery(ConnectMYSQL, query);
printf("Salvei com sucesso a casa ID: %d", houseid);
}
print("Sai da stock Salvar Casas !");
return 1;
}