New to SAMP, Mysql Plugin
#1

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.
Reply


Messages In This Thread
New to SAMP, Mysql Plugin - by swindle69 - 02.12.2011, 10:04
Re: New to SAMP, Mysql Plugin - by Charliee - 02.12.2011, 12:07
Re: New to SAMP, Mysql Plugin - by Scenario - 02.12.2011, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)