Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`rango1' at line 1 - Callback - OnQueryFinish - Query: INSERT INTO `faccion`(`nombre`, `numero`, `rango1 |
stock crearusefacc(playerid) { new pName[24], Query[50]; GetPlayerName(playerid, pName, 24); format(Query, sizeof(Query), "INSERT INTO `faccion`(`nombre`, `numero`, `rango1`) VALUES (%s, %d, %d)", pName, UserInfo[playerid][pFaccion], UserInfo[playerid][rank]); mysql_function_query(Conecction, Query, true, "OnQueryFinish", "ii", 0, playerid); return 1; } |
"INSERT INTO `faccion`(`nombre`, `numero`, `rango1`) VALUES ('%s', %d, %d)"
Strings need ' ' around %s or %e (escaped) specifier.
pawn Код:
|