19.06.2018, 01:55
saving in MySQL.. if it were enums, then if i would relog, data would get lost, wouldn't it?
When a player disconnects, mysql will set pjobselected(which means the player has selected his job) to 1..
And it works fine.. when i relog the GAME, my stats are saved, but as i restart the server using /RCON GMX... it resets the stats..
When a player disconnects, mysql will set pjobselected(which means the player has selected his job) to 1..
Код:
new query[24]; format(query, sizeof(query), "UPDATE `playerdata` SET `pjobselected` to 1"); mysql_tquery(dbHandle, query);