27.06.2011, 13:52
Hi Everyone. Need a help from you guys. ^_^
Here are the part of my codes:
But whenever i use /test bla bla.. it says "matches..."
/test anything.. it matches. -__-
Any Help?
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;
}
/test anything.. it matches. -__-
Any Help?