13.04.2015, 09:49
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:
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;
}