02.11.2011, 13:46
Код:
new findsub,subzeropos,subzero[50],sz[128],string[128],gangnum = playerGang[playerid];
format(sz,128,"%s",text);
while(subzeropos<=strlen(sz))
{
for(new d=0;d<MAX_PALAVRAS_SZ;d++)
{
findsub=strfind(sz,PPalavras[d],true,subzeropos);
if(findsub!=-1&&findsub==subzeropos)
{
strdel(sz,findsub,findsub+strlen(PPalavras[d]));
for(new h=0;h<strlen(PPalavras[d]);h++)
{
strcat(subzero,"*");
}
strins(sz,subzero,findsub,256);
strdel(subzero,0,strlen(subzero));
}
}
subzeropos++;
}


