I am using pawn script for something, and everything works great except for one of my queries. For some reason, it will not work, and I am hoping it is simple enough someone can spot my mistake as I have been banging my head on it for days.
The two highlighted lines are the queries that are not working. The other one works fine, but the values for ‘class1kills’ and ‘class2kills’ remain at 0. Here is a screenshot from phpmyadmin incase I did something silly.
Your SQL-code, copied from where you pasted it:
In addition to what the user Marcus said, even if there is a row in the table, but it’s value is NULL, then adding to the value will not work. You will have to set it to an integer value first, such as 0.
E.g.:
The NULL value was not updated!
By the way, are you sure you want to update the complete table?