Very Weird issue with " expected token: ",", but found ";""
#4

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
(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
);
leads you to optimize that line a bit to be able to read your gamemode again, so heres the...
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);
Reply


Messages In This Thread
Very Weird issue with " expected token: ",", but found ";"" - by tuuker - 22.12.2012, 10:15
Re: Very Weird issue with " expected token: ",", but found ";"" - by tuuker - 22.12.2012, 10:18
Re: Very Weird issue with " expected token: ",", but found ";"" - by SKAzini - 22.12.2012, 12:25
Re: Very Weird issue with " expected token: ",", but found ";"" - by Babul - 22.12.2012, 12:32

Forum Jump:


Users browsing this thread: 2 Guest(s)