14.01.2012, 12:42
Hey guy's,
I've a file with a few names:
And with a command i ant to remove the name "HardCore".
But i don't know how to make that. I tried taht one:
I hope anyone can help me.
Greetings
I've a file with a few names:
Код:
Zcelo12 ProGamer HardCore
But i don't know how to make that. I tried taht one:
Код:
CMD:removebl(playerid,params[]) { if (PlayerOrg[playerid] == 0) return SendError(playerid," You aren't in any faction!"); if(IsLeader(playerid) || IsPlayerRank(playerid) > 2) { new id; if(sscanf(params,"u",id)) return SendUsage(playerid," /removebl [playerid]"); if(!IsPlayerConnected(id) || IsPlayerNPC(id)) return SendError(playerid," Player is not connected!"); if(Org_Blacklist(id,GetOrgID(oPlayerName(id)))) { new name[64]; format(name,sizeof(name),"%s.ini",GetOrgName(PlayerOrg[playerid])); new File: file = fopen(name, io_read); if(file) { new valtmp[MAX_PLAYER_NAME]; while (fread(file, valtmp)) { StripNewLine(valtmp); if (!strcmp(valtmp, oPlayerName(playerid), true, strlen(oPlayerName(playerid)))) { strdel(valtmp,0,24); fclose(file); return 1; } } } } } return 1; }
Greetings