25.06.2018, 20:58
Hi, I got a question regarding MySQL, I am pretty new on this.
How can I check if a field is NULL? And how can I read an integer value from a field correctly?
I have something like this in my script
Although the pExam field value is 1, it still starts the exam.
How can I check if a field is NULL? And how can I read an integer value from a field correctly?
I have something like this in my script
Code:
PlayerData[extraid][pExam] = cache_get_field_int(0, "Exam"); if(!PlayerData[playerid][pExam]) StartExam(playerid);