Problem with function
#2

You should return string and not 1. Remove this line:
pawn Код:
forward GetMuteReason(playerid);
and change with:
pawn Код:
stock GetMuteReason(playerid)
{
    new reason[32];
    switch (UserStats[playerid][pMuted])
    {
        case 1: reason = "Спам";
        case 2: reason = "Псуване/Обиждане";
        case 3: reason = "Спам/Псуване/Обиждане";
        case 4: reason = "Оплакване във форума";
    }
    return reason;
}
Reply


Messages In This Thread
Problem with function - by MrTinder - 20.02.2014, 13:26
Re: Problem with function - by Konstantinos - 20.02.2014, 13:33
Re: Problem with function - by MrTinder - 20.02.2014, 13:40

Forum Jump:


Users browsing this thread: 2 Guest(s)