07.08.2009, 19:49
Hey,
My code:
And this doesn't deletes name from str..
It doesn't shows any errors or anything.. :S
My code:
pawn Код:
stock KickFromGang(PlayerID,GangName[])
{
if(!dini_Exists(GangName)) return -1;
new str[512],name[24];
GetPlayerName(PlayerID,name,24);
str = dini_Get(GangName,"Members");
new position = strfind(str,name,true);
if(position != 1)
{
strdel(str, position, position + strlen(name) + 1);
return 1;
}
return 0;
}
It doesn't shows any errors or anything.. :S