SA-MP Forums Archive
g_mysql_init 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: g_mysql_init help?? (/showthread.php?tid=582470)



g_mysql_init help?? - GiuseppeRidgway - 20.07.2015

I'm working with this script I found to improve my development skills, and all of the coding is split into different Pwns and linked to the main one using '#include'.

When I edit and compile one of the includes, I have to compile together the main .pwn for them to take effect on the script, though the main one isn't compiling. Can anyone help me?

Quote:

main() {}

public OnGameModeInit()
{
print("Preparing the gamemode, please wait...");
g_mysql_Init();
return 1;
}

public OnGameModeExit()
{
g_mysql_Exit();
return 1;
}

Quote:

\Desktop\Script\gamemodes\BGRP.pwn(3 : error 017: undefined symbol "g_mysql_Init"
\Desktop\Script\gamemodes\BGRP.pwn(44) : error 017: undefined symbol "g_mysql_Exit"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Can anybody help? I'm new to this, but I need it fixed..


Re: g_mysql_init help?? - Vince - 20.07.2015

The compiler can't find the required functions. Either because they have been declared as static in another file or because they simply don't exist.


Re: g_mysql_init help?? - GiuseppeRidgway - 20.07.2015

Well, is there any way I can locate them? I sent the script to a friend of mine and it compiled fine for him?.. Welp.