SA-MP Forums Archive
[HELP] Error, Please Help! - 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] Error, Please Help! (/showthread.php?tid=401112)



[HELP] Error, Please Help! - DJTunes - 21.12.2012

Hello. I've followed all the steps in this thread to get a Register, and Login System: https://sampforum.blast.hk/showthread.php?tid=305994

I get an error saying the following when I try to compile:
Код:
C:\Users\Zach\Desktop\SA-MP SERVER\IW.pwn(83) : error 037: invalid string (possibly non-terminated string)
C:\Users\Zach\Desktop\SA-MP SERVER\IW.pwn(83) : error 017: undefined symbol "YourDatabaseName"
C:\Users\Zach\Desktop\SA-MP SERVER\IW.pwn(83) : error 029: invalid expression, assumed zero
C:\Users\Zach\Desktop\SA-MP SERVER\IW.pwn(83) : fatal error 107: too many error messages on one line

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


4 Errors.
Here's the line that the errors on:
Код:
mysql_connect(mysql_host,mysql_user,mysql_database ,mysql_password)
I've already added the includes:
Код:
#include <a_samp>
#include <a_mysql>
I don't know what I did wrong.

Anyone please help!


Re: [HELP] Error, Please Help! - Ironboy - 21.12.2012

Check this line in your script whether it is correct or not

pawn Код:
#define mysql_database "YourDatabaseName"



Re: [HELP] Error, Please Help! - zDevon - 21.12.2012

Redo the first bits of the Scripting step in that tutorial. In those defines, you should change "YourDatabaseName" and all that to the details specific to your own MySQL setup.


Re: [HELP] Error, Please Help! - RedCrossER - 21.12.2012

Setup MySQL database and give those details in your script.