30.05.2015, 14:33
Your problem is ' '.
Try:
format(string, sizeof(string), "UPDATE playerdata SET Division = %d WHERE Name = '%s'", pInfo[playerid][pDivision], name)
You can to put ' ' just for strings, example: '%s'. Also, is wrong to put ' ' for numbers, right is: %d.
I had same trouble, but I solved it.
Sorry for my English, I know a little.
Have a nice day!
Try:
format(string, sizeof(string), "UPDATE playerdata SET Division = %d WHERE Name = '%s'", pInfo[playerid][pDivision], name)
You can to put ' ' just for strings, example: '%s'. Also, is wrong to put ' ' for numbers, right is: %d.
I had same trouble, but I solved it.
Sorry for my English, I know a little.
Have a nice day!