/unban help
#2

Most visible problems:

pawn Код:
SendClientMessage(playerid,COLOR_YELLOW,string,1);
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.

pawn Код:
format(string, 256, "___________________________________________", tmp);
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:

pawn Код:
format(string, sizeof(string), "___________________________________________");
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().

pawn Код:
format(string,sizeof(string),"%s.ini",tmp);
            fremove(string);
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.
Reply


Messages In This Thread
/unban help - by Dusan01 - 16.11.2011, 14:35
Re: /unban help - by Calgon - 16.11.2011, 14:40
Re: /unban help - by Dusan01 - 16.11.2011, 15:59
Re: /unban help - by Calgon - 16.11.2011, 16:07
Respuesta: /unban help - by kirk - 16.11.2011, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)