Define and CMD
#4

pawn Код:
#define DD Name
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/abc", cmdtext, true, 10) == 0)
    {
        new pName[MAX_PLAYER_NAME];
        new str[32];
        GetPlayerName(playerid, pName, sizeof(pName));
        if(format(str, sizeof(str), "%s", pName) == DD) // Error line
        {
            // function
            return 1;
        }
        else
        {
            //
            return 1;
        }
        return 1;
    }
    return 0;
}
pawn Код:
error 017: undefined symbol "Name"
Reply


Messages In This Thread
Define and CMD - by Lajko1 - 16.03.2014, 12:27
Re : Define and CMD - by anou1 - 16.03.2014, 12:33
Re : Define and CMD - by Golimad - 16.03.2014, 12:35
Re: Define and CMD - by Lajko1 - 16.03.2014, 12:53
Re: Define and CMD - by Ciarannn - 16.03.2014, 13:35
Re: Define and CMD - by Lajko1 - 16.03.2014, 14:20
Re: Define and CMD - by Abagail - 16.03.2014, 14:23
Re: Define and CMD - by Ciarannn - 16.03.2014, 14:27
Re: Define and CMD - by Lajko1 - 16.03.2014, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)