22.12.2012, 10:15
Getting error: expected token: ",", but found ";" for some reason as it's not that error at all.
After i call LoadAccount(playerid); at LoginPlayer that i made, the error occurs.
It says that this error occurs at 364 line where i have:
Seems perfect to me...
pawn Code:
LoginPlayer(playerid,password[])
{
if(strcmp(password, UserStats[playerid][pPass])) {
SendClientMessage(playerid,COLOR_RED,"Wrong password!");
} else {
LoadAccount(playerid);
}
return 1;
}
It says that this error occurs at 364 line where i have:
pawn Code:
format(query,sizeof(query), "SELECT * FROM `accounts` WHERE `id` = %d",UserStats[playerid][ID];
mysql_function_query(mysqlconnect, query, true, "OnAccountLoad", "d", playerid);