mysql_connect issue
#1

Код:
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?
Reply
#2

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

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

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
Reply
#4

PHP код:
sqlConnection mysql_connect(SQL_HOSTSQL_USERSQL_PASSWORDSQL_DB); 
Reply
#5

Show the line before the error line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)