19.07.2015, 14:38
The first one resets a player's data to 0. However, a (probably) more efficient way of doing that is:
The second one escapes ' characters in a string for usage in SQL statements. It does this by checking each character separately and copying it to the output. Obsolete as of 0.3.7 R2 where the new format specifier %q fulfills this functionality.
PHP код:
static const emptyInfo[USER_DATA];
User[playerid] = emptyInfo;