Help Me My Sql - 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: Help Me My Sql (
/showthread.php?tid=489863)
Help Me My Sql -
alishvasis - 24.01.2014
Код:
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
Help Me Plzzzzz
Re: Help Me My Sql -
Shetch - 24.01.2014
On top of your script:
OnGameModeInit:
Код:
mysql = mysql_connect(IP,USERNAME,DB,PASSWORD);
And then in your function:
Код:
mysql_query(mysql, ok);
Re: Help Me My Sql -
alishvasis - 24.01.2014
Quote:
Originally Posted by Shetch
On top of your script:
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"
Re: Help Me My Sql -
CH | FuDo - 24.01.2014
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"
Re: Help Me My Sql -
alishvasis - 24.01.2014
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