SA-MP Forums Archive
mysql_connect issue - 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_connect issue (/showthread.php?tid=640765)



mysql_connect issue - Jing_Chan - 07.09.2017

Код:
C:\Users\James\Desktop\RP Script\gamemodes\rp.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\RP Script\gamemodes\rp.pwn(54) : warning 215: expression has no effect
C:\Users\James\Desktop\RP Script\gamemodes\rp.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\RP Script\gamemodes\rp.pwn(54) : warning 215: expression has no effect
C:\Users\James\Desktop\RP Script\gamemodes\rp.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\RP Script\gamemodes\rp.pwn(54) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
this is line 54

Код:
	sqlConnection = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASSWORD);
i dont see the issue?


Re: mysql_connect issue - IlanZ - 07.09.2017

https://sampwiki.blast.hk/wiki/MySQL#mysql_connect

Код:
mysql_connect(const host[], const user[], const password[], const database[])
The sequence of parameters is wrong.


Re: mysql_connect issue - Jing_Chan - 07.09.2017

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/MySQL#mysql_connect

Код:
mysql_connect(const host[], const user[], const password[], const database[])
The sequence of parameters is wrong.
sqlConnection = mysql_connect(SQL_HOST, SQL_USER, SQL_PASSWORD, SQL_DB);

doesnt work


Re: mysql_connect issue - n00blek - 07.09.2017

PHP код:
sqlConnection mysql_connect(SQL_HOSTSQL_USERSQL_PASSWORDSQL_DB); 



Re: mysql_connect issue - MP2 - 07.09.2017

Show the line before the error line.