22.12.2012, 12:32
i think that "bug" occured when he typed in the format line with all parameters, and to avoid a too long line, which cannot be read when the cursor is at the left position, he decided to add a newline.
the usual habbit to end (almost) each line with a ; semicolon, caused him to do that instead typing a , comma required in order to let the second line be added as parameters for the previous format().
i had the missing ) of the format line in mind aswell, but the error itself is description enough![Smiley](images/smilies/smile.png)
(yet) best solution: (will get you used to indent your code properly)
leads you to optimize that line a bit to be able to read your gamemode again, so heres the...
best solution:
the usual habbit to end (almost) each line with a ; semicolon, caused him to do that instead typing a , comma required in order to let the second line be added as parameters for the previous format().
i had the missing ) of the format line in mind aswell, but the error itself is description enough
![Smiley](images/smilies/smile.png)
(yet) best solution: (will get you used to indent your code properly)
Code:
format(query,sizeof(query), "SELECT * FROM `accounts` WHERE `id` = %d", UserStats[playerid][ID], mysql_function_query(mysqlconnect, query, true, "OnAccountLoad", "d", playerid );
best solution:
Code:
format(query,sizeof(query), "SELECT * FROM `accounts` WHERE `id` = %d",UserStats[playerid][ID],mysql_function_query(mysqlconnect, query, true, "OnAccountLoad", "d", playerid);