Help Me My Sql
#1

Код:
error 035: argument type mismatch (argument 1)
This script :
Код:
stock SaveMine()
{
	new ok[200];
 	format(ok,sizeof(ok),"INSERT INTO mine (cutt) VALUES (%d)", cutt);
 	mysql_query(ok);
	return 1;
}
and This Line Have error

Код:
mysql_query(ok);
Help Me Plzzzzz
Reply
#2

On top of your script:
Код:
new mysql;
OnGameModeInit:
Код:
mysql = mysql_connect(IP,USERNAME,DB,PASSWORD);
And then in your function:
Код:
mysql_query(mysql, ok);
Reply
#3

Quote:
Originally Posted by Shetch
Посмотреть сообщение
On top of your script:
Код:
new mysql;
OnGameModeInit:
Код:
mysql = mysql_connect(IP,USERNAME,DB,PASSWORD);
And then in your function:
Код:
mysql_query(mysql, ok);
Код:
error 017: undefined symbol "IP"
And I Get new IP;

Give me This Error :

Код:
error 035: argument type mismatch (argument 1)
warning 203: symbol is never used: "IP"
Reply
#4

That IP change to the host where your database is. If you use it on home server, then it's usually "localhost", or "127.0.0.1"
Reply
#5

Quote:
Originally Posted by CH | FuDo
Посмотреть сообщение
That IP change to the host where your database is. If you use it on home server, then it's usually "localhost", or "127.0.0.1"
Tnq Fudo I Fix It Tnq Very Much For You And Shetch < I Rep You And Shetch <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)