09.07.2013, 19:09
Good Tutorial but you can add LIMIT 1 to your SELECT-query, because if the server found one result in his database he stopped and don`t go one with searching after results. With your query it is that the mysql-server go one with the searching after he found a result. With this you can optimize your SELECT-query a little bit.
A other point is that you can reset the values from your acc-array with a for-loop.
Example:
or
A other point is that you can reset the values from your acc-array with a for-loop.
Example:
Code:
for(new i; i < _:USER_DATA; ++i)User[playerid][USER_DATA:i]= 0;
Code:
for(new i; USER_DATA:i < USER_DATA; i++) User[playerid][USER_DATA:i] = 0;