• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Unknown Gamemode
#13
Here's the original function from the include file
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;
}
Used in my gamemode like this
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.
[Image: QIDa2vB.png]

  Reply


Messages In This Thread
Unknown Gamemode - by Snow - 2021-03-18, 03:32 AM
RE: Unknown Gamemode - by Stones - 2021-03-18, 09:23 AM
RE: Unknown Gamemode - by Virsenas - 2021-03-18, 12:01 PM
RE: Unknown Gamemode - by Y_Less - 2021-03-18, 05:24 PM
RE: Unknown Gamemode - by Snow - 2021-03-18, 05:47 PM
RE: Unknown Gamemode - by destiezk - 2021-03-18, 10:04 PM
RE: Unknown Gamemode - by Snow - 2021-03-19, 11:04 AM
RE: Unknown Gamemode - by Radical - 2021-03-19, 03:07 PM
RE: Unknown Gamemode - by Emmett - 2021-03-19, 05:42 PM
RE: Unknown Gamemode - by Radical - 2021-03-19, 06:33 PM
RE: Unknown Gamemode - by Snow - 2021-03-20, 01:45 PM
RE: Unknown Gamemode - by Pinch - 2021-03-20, 02:13 PM
RE: Unknown Gamemode - by Snow - 2021-03-20, 02:49 PM
RE: Unknown Gamemode - by Y_Less - 2021-03-21, 12:11 PM
RE: Unknown Gamemode - by Snow - 2021-03-21, 08:02 PM
RE: Unknown Gamemode - by Virsenas - 2021-03-21, 08:17 PM
RE: Unknown Gamemode - by Snow - 2021-03-22, 05:24 AM

Forum Jump: