pawn-lang / YSI-Includes

Just the YSI include files, none of the extra stuff.
210 stars 107 forks source link

y_inline_mysql #650

Closed ASGOOD1 closed 1 year ago

ASGOOD1 commented 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));

What is wrong with this code

xunder-matth commented 1 year ago

Use %e instead of %q.