Text match (Enum & String)
#1

Hi Everyone. Need a help from you guys. ^_^

Here are the part of my codes:
pawn Код:
enum EInfo
{
        AText[26]; // Imagine it contains "yay!".
}

new PlayerInfo[MAX_PLAYERS][EInfo];


//In a Command:
CMD:test(playerid, params[])
{
        new string[26];
        if(!sscanf(params, "s[26]", string)
                if(strcmp(string,PlayerInfo[playerid][AText],true) == 0)
                {
                        SendClientMessage(playerid, COLOR_WHITE, "Matches!");
                }
        }
        return true;
}
But whenever i use /test bla bla.. it says "matches..."
/test anything.. it matches. -__-


Any Help?
Reply


Messages In This Thread
Text match (Enum & String) - by iPLEOMAX - 27.06.2011, 13:52
Re: Text match (Enum & String) - by iPLEOMAX - 28.06.2011, 18:15
Re: Text match (Enum & String) - by Shadoww5 - 28.06.2011, 18:36
Re: Text match (Enum & String) - by iPLEOMAX - 28.06.2011, 19:47
Re: Text match (Enum & String) - by Jefff - 28.06.2011, 19:53
Re: Text match (Enum & String) - by iPLEOMAX - 28.06.2011, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)