SA-MP Forums Archive
Mysql errors - 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: Mysql errors (/showthread.php?tid=591997)



Mysql errors - fuckingcruse - 19.10.2015

These are the errors i am getting...
I have tried these codes - https://sampforum.blast.hk/showthread.php?tid=485633

Код:
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(73) : error 017: undefined symbol "mysql_log"
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(74) : error 017: undefined symbol "mysql"
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(74) : error 017: undefined symbol "host"
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(75) : error 017: undefined symbol "mysql"
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(100) : error 017: undefined symbol "Name"
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(100) : warning 215: expression has no effect
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(100) : error 001: expected token: ";", but found "]"
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(100) : error 029: invalid expression, assumed zero
C:\Users\Tarun\Downloads\samp037_svr_R1_win32\gamemodes\Untitled.pwn(100) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.



Re: Mysql errors - fuckingcruse - 19.10.2015

Comon help me


Re: Mysql errors - Galhardo - 19.10.2015

Post all codes.


Re: Mysql errors - fuckingcruse - 19.10.2015

I already showed you what I am using.. check that post..


Re: Mysql errors - Galhardo - 19.10.2015

You put this
pawn Код:
static
    mysql, //This variable will be used to manage our database
    Name[MAX_PLAYERS][24], //We will use this variable to store player's name.
    IP[MAX_PLAYERS][16] //We will use this variable to store player's ip.
    ;
at the beginning of the gamemode?


Re: Mysql errors - fuckingcruse - 19.10.2015

Yes.


Re: Mysql errors - Galhardo - 19.10.2015

try using this tutorial, it is more updated.

https://sampforum.blast.hk/showthread.php?tid=574714


Re: Mysql errors - fuckingcruse - 19.10.2015

Bugs have been cleared.. But when i start the server.exe . It says Could not connect to database. Why so?


Re: Mysql errors - Galhardo - 19.10.2015

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
Bugs have been cleared.. But when i start the server.exe . It says Could not connect to database. Why so?
You put all the information about MySQL correct? Database, pass, host and user?
Normally the host for pc is localhost and the user is root.

You start mysql and apache in xampp?


Re: Mysql errors - fuckingcruse - 19.10.2015

I need to open The database? And 1 more thing , when I join game t doesn't show login /register box., is this because of The database?