22.05.2012, 16:40
I edited the last post.
Printf("%s",SQL_Query);
stock SaveStats(playerid)
{
format(SQL_Query,sizeof(SQL_Query),"UPDATE `Accounts` SET `IP` = '%s', `Money` = '%i', `Level` = '%i', `AdminLevel` = '%i', `Faction` = '%i', `FactionRank` = '%i' WHERE `Username` = '%s'",
Player[playerid][Ip],
Player[playerid][Money],
Player[playerid][Level],
Player[playerid][AdminLevel],
Player[playerid][Faction],
Player[playerid][FactionRank],
pName(playerid));
print(SQL_Query);
mysql_query(SQL_Query);
mysql_free_result();
printf("%s", SQL_Query);
return 1;
}
mysql_debug(1);
format(SQL_Query,sizeof(SQL_Query),"UPDATE `Accounts` SET `IP` = '%s', `Money` = '%d', `Level` = '%d', `AdminLevel` = '%d', `Faction` = '%d', `FactionRank` = '%d' WHERE `Username` = '%s'", // continue your format code
pawn Код:
I hope it works buddy! |