Simple mysql error - 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: Simple mysql error (
/showthread.php?tid=523356)
Simple mysql error -
EmilLykke - 01.07.2014
Quote:
gm.pwn(24) : error 035: argument type mismatch (argument 2)
gm.pwn(31) : error 035: argument type mismatch (argument 1)
gm.pwn(28) : warning 203: symbol is never used: "pass"
gm.pwn(28) : warning 203: symbol is never used: "db"
gm.pwn(28) : warning 203: symbol is never used: "user"
gm.pwn(28) : warning 203: symbol is never used: "host"
gm.pwn(28) : warning 203: symbol is never used: "text"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
|
pawn Код:
public OnGameModeInit()
{
DisableInteriorEnterExits();
ManualVehicleEngineAndLights();
connect_mysql(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);
return 1;
}
// LINE 28 stock connect_mysql(text[], host, user, db, pass)
{
mysql_log(LOG_ERROR | LOG_WARNING | LOG_DEBUG);
// LINE 31 Connectline = mysql_connect(host, user, db, pass);
if(mysql_errno(Connectline) != 0)
{
print("MYSQL ERROR: The MySQL Connection could not be established!");
}
return 1;
}
Re: Simple mysql error -
Timeless - 01.07.2014
The least you could do is pinpoint which line is for which error or warning
Re: Simple mysql error -
EmilLykke - 01.07.2014
Changed
Re : Simple mysql error -
Anonyme - 01.07.2014
Look here >>>>
https://sampwiki.blast.hk/wiki/Errors_List
Re: Simple mysql error -
EmilLykke - 01.07.2014
Or you could help me and do it?
Re: Simple mysql error -
Timeless - 01.07.2014
gm.pwn(2

: warning 203: symbol is never used: "pass"
gm.pwn(2

: warning 203: symbol is never used: "db"
gm.pwn(2

: warning 203: symbol is never used: "user"
gm.pwn(2

: warning 203: symbol is never used: "host"
gm.pwn(2

: warning 203: symbol is never used: "text"
You have created a variable or a function, but you're not using it. Delete the variable or function if you don't intend to use it. delete those variables cause they aren't being used
gm.pwn(31) : error 035: argument type mismatch (argument 1)
i'm not to great with mysql but i know the error means you're missing something from the format
so yeah read up
https://sampwiki.blast.hk/wiki/Errors_List
Re: Simple mysql error -
EmilLykke - 01.07.2014
Fixed it.