FallingSheep
OpenDayZ Lord!
hi guys im a bit lost with the whole 999 call 
so heres a quick run down of what i want to happen
So i have a new table with the following colums PUID2, AHUM
PUID2 is pre filled with each new players UID and AHUM is set to 0 by default
//get current players UID
PUID = get playerUID
//Read data from the DB
read PUID2, AHUM for PUID from DB (i know its some sort of SQL )
//Turn the data returned from the DB into variables that can be used like so
PUID2 = value in DB
DB_AHUM = value in DB (default is 0 )
//Run some code to change the value - i know how to do this part
check if player has X amount of humanity if so set AHUM = 1
check if AHUM value has changed since reading from DB ( AHUM > DB_AHUM )
//Save the value back to DB
write PUID2, AHUM for PUID back to DB
hope this makes sense
so heres a quick run down of what i want to happen
So i have a new table with the following colums PUID2, AHUM
PUID2 is pre filled with each new players UID and AHUM is set to 0 by default
//get current players UID
PUID = get playerUID
//Read data from the DB
read PUID2, AHUM for PUID from DB (i know its some sort of SQL )
//Turn the data returned from the DB into variables that can be used like so
PUID2 = value in DB
DB_AHUM = value in DB (default is 0 )
//Run some code to change the value - i know how to do this part
check if player has X amount of humanity if so set AHUM = 1
check if AHUM value has changed since reading from DB ( AHUM > DB_AHUM )
//Save the value back to DB
write PUID2, AHUM for PUID back to DB
hope this makes sense