01.02.2015, 09:15
PHP код:
stock SaveFarm()
{
format(query, sizeof(query), "UPDATE `farms` SET `owner` = '%s', `owned` = '%d', `lock` = '%d', `water` = '%d', `apples` = '%d', `harvest` = '%d', `bank` = '%d', `statusfarm` = '%d', `statussad` = '%d', `cenaapples` = '%d', `cenawaterdriver` = '%d' WHERE `id` = '%d'",
FarmInfo[fOwner], FarmInfo[fOwned],
FarmInfo[fLock], FarmInfo[fWater],
FarmInfo[fApples], FarmInfo[fHarvest],
FarmInfo[fBank], FarmInfo[fStatusFarm],
FarmInfo[fStatusSad], FarmInfo[fCenaApples],
FarmInfo[fCenaWaterDriver], FarmInfo[fID]);
mysql_function_query(dbHandle, query, false, "", "" );
print("[MYSQL UPDATE](SaveFarm)");
}