Assigning ID's to self created achievements
#2

I'm not sure where the line is, however I can guess that the error is at:
pawn Код:
stock AddAchievement(aid, name[56], info[126], money, gld)
{
    format(AInfo[currentachieveslot][Name], 56, "%s", name);
    format(AInfo[currentachieveslot][Info], 56, "%s", info);

    AInfo[currentachieveslot][Aid] = aid;
    AInfo[currentachieveslot][Money] = money;
    AInfo[currentachieveslot][Gold] = gld;

    return currentachieveslot, currentachieveslot ++; // here
}
Which should be solved by:
pawn Код:
stock AddAchievement(aid, name[56], info[126], money, gld)
{
    format(AInfo[currentachieveslot][Name], 56, "%s", name);
    format(AInfo[currentachieveslot][Info], 56, "%s", info);

    AInfo[currentachieveslot][Aid] = aid;
    AInfo[currentachieveslot][Money] = money;
    AInfo[currentachieveslot][Gold] = gld;

    currentachieveslot ++;
    return (currentachieveslot - 1); // here
}
Reply


Messages In This Thread
Assigning ID's to self created achievements - by knackworst - 29.11.2013, 20:11
Re: Assigning ID's to self created achievements - by Loot - 29.11.2013, 20:26
Re: Assigning ID's to self created achievements - by knackworst - 29.11.2013, 20:32

Forum Jump:


Users browsing this thread: 3 Guest(s)