15.05.2011, 09:58
pawn Code:
stock IsSwear(const name[])
{
new
IF_TRUE = -1;
loop(i, sizeof psovkeArray)
{
if(!strcmp(name, psovkeArray[i]))
{
IF_TRUE = i;
}
}
return IF_TRUE;
}
pawn Code:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text,IsSwear)) // ERROR LINE!
{
SCM(playerid,plava, "Don't swear!");
return false;
}
return true;
}
Code:
error 076: syntax error in the expression, or invalid function call