MySQL Database + Errorrs [REP+]
#5

Hi SecretBoss,

You should change your SERVER_ and LOCAL_ defines to the same defines and for example if you change LOCAL_ to SERVER_ you should edit all instances of LOCAL_ to SERVER_ to prevent further errors.

Because you are making USE_LOCALHOST false it LOCAL_HOST, LOCAL_DB etc... Here's an example:
pawn Код:
#define FILTERSCRIPT true

#include <a_samp>

#if defined FILTERSCRIPT true // Because FILTERSCRIPT is defined true only LOCAL_HOST will be defined. PUBLIC_HOST will not.

#define LOCAL_HOST "44"

#else

#define PUBLIC_HOST "55" // If we define FILTERSCRIPT as false PUBLIC_HOST will be defined, not LOCAL_HOST

#endif

main(){}

public OnGameModeInit()
{
    printf(LOCAL_HOST);
    printf(PUBLIC_HOST);
    return 1;
}
Reply


Messages In This Thread
MySQL Database + Errorrs [REP+] - by SecretBoss - 13.04.2015, 09:27
Re: MySQL Database + Errorrs [REP+] - by mamorunl - 13.04.2015, 09:30
Re: MySQL Database + Errorrs [REP+] - by SecretBoss - 13.04.2015, 09:35
Re: MySQL Database + Errorrs [REP+] - by mamorunl - 13.04.2015, 09:43
Re: MySQL Database + Errorrs [REP+] - by MEW273 - 13.04.2015, 09:49
Re: MySQL Database + Errorrs [REP+] - by SecretBoss - 13.04.2015, 09:49
Re: MySQL Database + Errorrs [REP+] - by SecretBoss - 13.04.2015, 09:57
Re: MySQL Database + Errorrs [REP+] - by MEW273 - 13.04.2015, 10:02
Re: MySQL Database + Errorrs [REP+] - by SecretBoss - 13.04.2015, 11:01
Re: MySQL Database + Errorrs [REP+] - by mamorunl - 13.04.2015, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)