Here's the original function from the include file
Used in my gamemode like this
EDIT: Removing all achievement code from the gamemode fixes the problem. But I want to know any possible solution to make both work with each other.
Code:
forward CreateAchievement(title[], info[], unlockvalue);
public CreateAchievement(title[], info[], unlockvalue)
{
format(ACH_MAIN[ACH_NUM][ACH_TITLE], 32, "%s", title);
format(ACH_MAIN[ACH_NUM][ACH_INFO], 128, "%s", info);
ACH_MAIN[ACH_NUM][ACH_WINVALUES] = unlockvalue;
if(ACH_NUM > MAX_ACHIEVEMENTS) printf(" **[WARNING] Number of achievements created is exceeding the max allowed limit.");
return ACH_NUM, ACH_NUM;
}
Code:
Ach_MoneyBag1 = CreateAchievement("GETTING RICH!","Find 1 Moneybag", 1);
EDIT: Removing all achievement code from the gamemode fixes the problem. But I want to know any possible solution to make both work with each other.