08.02.2013, 15:06
(
Последний раз редактировалось Youice; 23.11.2014 в 21:33.
)
removed.
i recognize most of the explanation in the introduction from the sqlite website, but it's always a good idea to have it here on forums.
note -> you have a header called "feature" but it links me to the sqlite website. If I wanted information from the sqlite website I wouldn't be looking here in the first place, i'd just visit their site (which is probably more accurate). it'd be best to list any findings/information from the site directly (that's the purpose of brief explanations, but make sure it's sourced). and if i were to copy pasta like most people do, i'd get errors and probably whine and complain in this thread (hint: close your strings). other than that, it's OK i guess. |
forward public UpdateData(playerid);
public UpdateData(playerid)
{
new
Query[200],
name[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, name, sizeof(name));
format(Query,sizeof(Query),"UPDATE `USERS` SET CASH = '%d' WHERE `NAME` = '%s' COLLATE NOCASE", GetPlayerMoney(playerid), DB_Escape(name));
db_free_result(db_query(Users, Query));
return 1;
}
ConnectSQL();
ConnectSQLite();
error 017: undefined symbol "ConnectSQL"
forward public ConnectSQLite(); //<---- SQLite and not SQL.
public ConnectSQLite()
{
Users = db_open("PlayersBase.db");
db_query(Users, "CREATE TABLE IF NOT EXISTS `USERS` (`NAME`, `PASSWORD`, `CASH`)");
print("[SQL]:`Has connected Succesfully`");
return 1;
}