error 017: undefined symbol "strmatch"
#1

pawn Код:
CMD:shout(playerid, params[])
{
    new message[128], string[182];
    if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_DARKGREY, "Usage: /s(hout)");
    {
        if(strmatch("None", Character[playerid][Accent]))
        {
            format(string, sizeof(string), "%s shouts: %s!", MaskOnOff(playerid), message);
        }
        else
        {
            format(string, sizeof(string), "%s shouts: [%s accent] %s!", MaskOnOff(playerid), Player[playerid][Accent], message);
        }
        CloseMessageEx(playerid, SHOUT, string, 20.0);
        SetPlayerChatBubble(playerid, string, SHOUT, 20.0, 10000);
    }
    return 1;
}
pawn Код:
(2104) : error 017: undefined symbol "strmatch"
(2110) : error 017: undefined symbol "Player"
(2110) : warning 215: expression has no effect
(2110) : error 001: expected token: ";", but found "]"
(2110) : error 029: invalid expression, assumed zero
(2110) : fatal error 107: too many error messages on one line
Reply
#2

strmatch ? Why not strcmp. It does the same thing!
Reply
#3

Oh thanks!
Reply


Forum Jump:


Users browsing this thread: