29.03.2017, 21:56
RANK_STATUS`=1 This doesent Change wheen i CheckVeteran
PHP код:
forward Checkveteran();
public Checkveteran()
{
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
pGeneral[i][PLR_VETERAN] = 0;
pGeneral[i][OLD_HOURS] = 0;
}
}
mysql_query_nodata("UPDATE `plr_veteran` SET `RANK_STATUS`=0,`RANK_UPDATED`=1");
mysql_query_nodata("UPDATE `plr_veteran` SET `RANK_STATUS`=1,`RANK_UPDATED`=1 WHERE `OLD_HOURS` > 20");
mysql_query_nodata("UPDATE plr_veteran SET `OLD_HOURS` = 0");
return 1;
}