SA-MP Forums Archive
Errors in log/reg system mysql - 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: Errors in log/reg system mysql (/showthread.php?tid=540324)



Errors in log/reg system mysql - YanLanger - 04.10.2014

PHP код:
C:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_sampdb.inc(14) : error 010invalid function or declaration
C
:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_sampdb.inc(15) : error 010invalid function or declaration
C
:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_mysql.inc(111) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_mysql.inc(111) : error 001expected token";"but found "["
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(296) : warning 217loose indentation
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(703) : warning 217loose indentation
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(704) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
4 Errors

PHP код:
mysql mysql_connect(hostuserdbpass); //Line 192 



Re: Errors in log/reg system mysql - Sawalha - 04.10.2014

Maybe you have forgot to define them.
remember that:
pawn Код:
#define host "localhost"
#define user "root"
#define db "your db name"
#define pass "your pass"
And remember it's under OnGameModeInit.


Re: Errors in log/reg system mysql - YanLanger - 04.10.2014

I did define it.


Re: Errors in log/reg system mysql - Sawalha - 04.10.2014

Can i see how you defined it?
EDIT:which version of mysql you are using? maybe old one.


Re: Errors in log/reg system mysql - YanLanger - 04.10.2014

PHP код:
#define host   "localhost"
#define user   "root"
#define db     "lscnr"
#define pass   "" 



Re: Errors in log/reg system mysql - YanLanger - 04.10.2014

Idk what version.. how do i check.


Re: Errors in log/reg system mysql - Sawalha - 04.10.2014

From your include , Anyways, You may get Version R39-2 for every newer function.
Download Link:
https://github.com/pBlueG/SA-MP-MySQL/releases


Re: Errors in log/reg system mysql - YanLanger - 04.10.2014

where i put mysql.so or somethin, in plugins ?


Re: Errors in log/reg system mysql - YanLanger - 04.10.2014

same...
PHP код:
C:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_sampdb.inc(14) : error 010invalid function or declaration
C
:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_sampdb.inc(15) : error 010invalid function or declaration
C
:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_mysql.inc(111) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\yan\Desktop\Cops And Robbers\pawno\include\a_mysql.inc(111) : error 001expected token";"but found "["
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(192) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase


4 Errors




Re: Errors in log/reg system mysql - YanLanger - 04.10.2014

Someone please !