SA-MP Forums Archive
error 017: undefined symbol "strmatch" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol "strmatch" (/showthread.php?tid=521282)



error 017: undefined symbol "strmatch" - AMouldyLemon - 22.06.2014

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



Re: error 017: undefined symbol "strmatch" - RenovanZ - 22.06.2014

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


Re: error 017: undefined symbol "strmatch" - AMouldyLemon - 22.06.2014

Oh thanks!