[SOLVED] Question about /wipechat
#9

Finally! Thanks man

I got one error next to optimiz my code qith the script. If you want explain me how to fix it:

Код:
dcmd_clear(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] < 2) return false;
	for(new i=0; i<30; i++)
	{
		SendClientMessageToAll(COLOR_BRIGHTRED, " ");

		new	str[54], pName[24]
		GetPlayerName(playerid, pName, sizeof(pName));
		format(str, sizeof(str), "Admin %s has cleared the chat.", pName);
		SendClientMessageToAll(COLOR_BRIGHTRED, str);
	}
	#pragma unused params
	return 1;
}
ERROR: \filterscripts\Adminscript.pwn(1143) : error 001: expected token: ";", but found "-identifier-"


ERROR LINE:

GetPlayerName(playerid, pName, sizeof(pName));

.
Reply


Messages In This Thread
[SOLVED] Question about /wipechat - by Flashy - 30.05.2010, 14:09
Re: Question about /wipechat - by DJDhan - 30.05.2010, 14:32
Re: Question about /wipechat - by Flashy - 30.05.2010, 14:58
Re: Question about /wipechat - by Calgon - 30.05.2010, 15:09
Re: Question about /wipechat - by Flashy - 30.05.2010, 15:13
Re: Question about /wipechat - by Calgon - 30.05.2010, 15:17
Re: Question about /wipechat - by Flashy - 30.05.2010, 15:20
Re: Question about /wipechat - by Calgon - 30.05.2010, 15:22
Re: Question about /wipechat - by Flashy - 30.05.2010, 15:31
Re: Question about /wipechat - by iStarzz - 30.05.2010, 15:32

Forum Jump:


Users browsing this thread: 2 Guest(s)