08.01.2014, 11:39
Hello everybody.Today I get big problem with my saving system.Here is the code
This function is saving those variables into MySQL database.But some how Drug and weapon stats won`t save.I don`t know why.Anyone can helps me?
pawn Код:
SaveServerCfg()
{
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `doublescore` = %d",sPanel[Doublescore]);
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `carcapture` = %d",sPanel[CarCapture]);
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `connectmessage` = %d",sPanel[ConnectMessage]);
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `watchpm` = %d",sPanel[WatchPM]);
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `zonesdebug` = %d",sPanel[ZonesDebug]);
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `drugstats` = %d",DrugStats);
format(slova, sizeof(slova), "UPDATE `serverpanel` SET `weaponstats` = %d",WeaponStats);
mysql_query(slova);
}