format(sqlquery, sizeof(sqlquery), "INSERT INTO `players` (`Name`, `Password`, `Salt`, `Pol`, `Godine`, `Email`) VALUES ('%s', '%s', '%s', %d, %d)",
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_NAME]),
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_PASSWORD]),
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_SALT]),
E_PLAYER_INFO[playerid][E_PLAYER_GENDER],
E_PLAYER_INFO[playerid][E_PLAYER_AGE]);
db_query(Database, sqlquery);
print(sqlquery);
INSERT INTO `players` (`Name`, `Password`, `Salt`, `Pol`, `Godine`, `Email`) VALUES ('Stefa_Kuja', 'F8FAE6659CF55CFDF7E3FEA6A3DC12C4E488F102725FC16990A57657CED954A7', ')ufaKWYP?[tz.0YU', 1, 18)
VALUES ('%s', '%s', '%s', %d, %d) // TO
VALUES ('%s', '%s', '%s', '%d', '%d')
Try chaning this
pawn Code:
|
if you can give us log errors next time (Main File > Logs > Errors)
anyway for this one there is one missing in your format! (`Name`, `Password`, `Salt`, `Pol`, `Godine`, `Email`) ('%s', '%s', '%s', %d, %d) you dident specife any detecter for Email Value! remove it or make it like this ! ('%s', '%s', '%s', %d, %d,'%s') and add playeremail at end of format |
format(sqlquery, sizeof(sqlquery), "INSERT INTO `players` (`Name`, `Password`, `Salt`, `Pol`, `Godine`) VALUES ('%s', '%s', '%s', %d, %d)",
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_NAME]),
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_PASSWORD]),
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_SALT]),
E_PLAYER_INFO[playerid][E_PLAYER_GENDER],
E_PLAYER_INFO[playerid][E_PLAYER_AGE]);
db_query(Database, sqlquery);