Stock Help
#3

The use of the variable "pName" is totally wrong.
pawn Код:
stock SetPlayerTeamFromClass(playerid, classid)
{
    new pName[MAX_PLAYER_NAME];

    if(classid >= 0 && classid <= 2) strcat(pName, TEAM_NANANG);
    else if(classid >= 3 && classid <= 5) strcat(pName, TEAM_FIERRO);
    else if(classid >= 6 && classid <= 8) strcat(pName, TEAM_TRIAD);
    else if(classid >= 9 && classid <= 11) strcat(pName, TEAM_BIKER);
    else if(classid >= 12 && classid <= 14) strcat(pName, TEAM_MAFIA);
    else if(classid >= 14 && classid <= 17) strcat(pName, TEAM_ARMY);
    return pName;
}
Reply


Messages In This Thread
Stock Help - by MD5 - 04.10.2015, 17:00
Re: Stock Help - by ATGOggy - 04.10.2015, 17:02
Re: Stock Help - by Kevln - 04.10.2015, 17:14
Re: Stock Help - by ATGOggy - 04.10.2015, 17:56
Re: Stock Help - by d1git - 04.10.2015, 18:01
Re: Stock Help - by MD5 - 04.10.2015, 18:17
Re: Stock Help - by ATGOggy - 04.10.2015, 18:47
Re: Stock Help - by MD5 - 04.10.2015, 18:50
Re: Stock Help - by AbyssMorgan - 04.10.2015, 18:55
Re: Stock Help - by MD5 - 04.10.2015, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)