20.07.2012, 08:46
I recently converted over from R5/R6 to R7, and i immediately noticed i can no longer use mysql_query ( Makes me sound newbie, but oh well. I'm here to learn. )
Now; I'm a tad confusing on what to convert mysql_query to, and how i will do it; So ill post some scripts hoping you guys can take a look at it see and help me out.
Thank's for the help.
Now; I'm a tad confusing on what to convert mysql_query to, and how i will do it; So ill post some scripts hoping you guys can take a look at it see and help me out.
Код:
public OnGameModeInit() { SetGameModeText(REVISION); mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password); mysql_function_query(dbHandle,"CREATE TABLE IF NOT EXISTS playerdata(user VARCHAR(24), password VARCHAR(41), level INT(20), money INT(20), IP VARCHAR(16), admin INT(20), bank INT(20))"); UsePlayerPedAnims(); mysql_debug(1); DisableInteriorEnterExits(); return 1; }
Код:
format(query, sizeof(query), "SELECT IP FROM `playerdata` WHERE user = '%s' LIMIT 1", pname); mysql_query(query);