SA-MP Forums Archive
Mysql Sytem Help please[Solved] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mysql Sytem Help please[Solved] (/showthread.php?tid=456426)



Mysql Sytem Help please[Solved] - Unoffical - 05.08.2013

Well here's the code and error's.
Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
mysql_query("CREATE TABLE IF NOT EXISTS playerdata(user VARCHAR(24), password VARCHAR(40), score INT(20), money INT(20), level INT(1), vip INT(20), kma INT(20), rank INT(20), kills INT(20), deaths INT(20), muted INT(20), jailed INT(20), frozen INT(20), mutedtimes INT(20), jailedtimes INT(20), frozentimes INT(20), logins INT(20), posx INT(20), posy INT(20), posz INT(20), posa INT(20), IP VARCHAR(16) )");
mysql_query("CREATE TABLE IF NOT EXISTS Bans(Username VARCHAR(32), Admin VARCHAR(32), IP VARCHAR(16), Reason VARCHAR(64), Seconds INT(12), Banned INT(5) )");
mysql_debug(1);
if(mysql_ping()>2)
print("Connection to database failed.");
else print("Connection to database successful.");
return 1;
}
Код:
C:\Users\score_000\Desktop\Thygz.pwn(662) : error 021: symbol already defined: "mysql_connect"
C:\Users\score_000\Desktop\Thygz.pwn(666) : error 010: invalid function or declaration
C:\Users\score_000\Desktop\Thygz.pwn(668) : error 010: invalid function or declaration
C:\Users\score_000\Desktop\Thygz.pwn(669) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Did i rewrite it in the wrong spot?


Re: Mysql Sytem Help please - Unoffical - 05.08.2013

Nevermind i got it sorted out i actually typed it in the wrong spot