16.11.2011, 14:40
Most visible problems:
The '1' means nothing, you need to remove that, along with the comma before it. SendClientMessage has three parameters, remove all occurances of the ', 1' in your code.
Client messages can't ever exceed the size of 128, '256' is more than pointless, and double the limit. Your compiler will get the size of the string by default and you won't have to type a number in format, if you replace it with sizeof(string), like:
Furthermore, you have no variable named 'tmp' being used in your format statement - the code makes no sense, you can just send a normal client message. If you're not formatting a string with other strings, there's really no need to use format().
Are you sure you're deleting the ban file? Most unorganized Godfather scripts store user accounts in the main folder that SA-MP accesses and are created as 'Name_Name.ini', so it looks a little more like you're deleting your user account, rather than the ban.
pawn Код:
SendClientMessage(playerid,COLOR_YELLOW,string,1);
pawn Код:
format(string, 256, "___________________________________________", tmp);
pawn Код:
format(string, sizeof(string), "___________________________________________");
pawn Код:
format(string,sizeof(string),"%s.ini",tmp);
fremove(string);