New to SAMP, Mysql Plugin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: New to SAMP, Mysql Plugin (
/showthread.php?tid=300857)
New to SAMP, Mysql Plugin -
swindle69 - 02.12.2011
Hey guys, frist thread i think. im giving Pawno scripting ago.
My error: J:\SAMP\gamemodes\new.pwn(56) : error 017: undefined symbol "connectDB"
Код:
connectDB()
{
mysql_connect("127.0.0.1", "root", "sa-mp", "ascent");
if(!mysql_ping())
{
print("MYSQL: Connection is alive!");
return 1;
}
else
{
print("MYSQL: Connection is dead.");
return 1;
}
return 1;
}
//My functions stop here..
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
connectDB();
}
Im trying to create a Function but for the life of me, i cant seem it get it running. Like i said im 100% new to this.
Sorry for my noobieness..
Thanks guys.
Re: New to SAMP, Mysql Plugin -
Charliee - 02.12.2011
What do you need exactly the plugin or what?
Re: New to SAMP, Mysql Plugin -
Scenario - 02.12.2011
You'll want to learn how to indent (use TAB). Anyways: