Closed ASGOOD1 closed 1 year ago
inline addToDatabase() { pInfo[playerid][pKey] = cache_insert_id(); printf("(!) New Account: %s(%d) with SQLID - #%d", getName(playerid), playerid, pInfo[playerid][pKey]); cvector_push_back_arr(accountNames, getName(playerid)); } MySQL_TQueryInline(SQL, using inline addToDatabase, "INSERT INTO accounts (Username, Password, Money) VALUES ('%q', '%q', '10000')", getName(playerid), PWDHash(inputtext));
accounts
Username
Password
Money
What is wrong with this code
Use %e instead of %q.
%e
%q
inline addToDatabase() { pInfo[playerid][pKey] = cache_insert_id(); printf("(!) New Account: %s(%d) with SQLID - #%d", getName(playerid), playerid, pInfo[playerid][pKey]); cvector_push_back_arr(accountNames, getName(playerid)); } MySQL_TQueryInline(SQL, using inline addToDatabase, "INSERT INTO
accounts
(Username
,Password
,Money
) VALUES ('%q', '%q', '10000')", getName(playerid), PWDHash(inputtext));What is wrong with this code