Error : Log , +rep for help!
#1

Apparently I have an error "Log":

Quote:

C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Millenium.pwn(186 : error 017: undefined symbol "Log"
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Millenium.pwn(1879) : error 017: undefined symbol "Log"

Command:

Код:
CMD:setcsr(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] <= 5) return Error(playerid, "You are not authorized to use this command.");
	new giveplayerid, string[128];
	if(sscanf(params, "i", giveplayerid)) return Syntax(playerid, "setcsr", "[playerid]");
	if(!IsPlayerConnected(giveplayerid)) return Error(playerid, "That player is not online!");
	if(PlayerInfo[giveplayerid][pShopTech] == 0)
	{
		PlayerInfo[giveplayerid][pShopTech] = 1;
		format(STRING, "You have made %s a CSR!",GetPlayerNameEx(giveplayerid));
		SendClientMessageEx(playerid, COLOR_WHITE, string);
		format(STRING, "AdmCmd: %s has made %s a CSR!",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
		SendAdminMessage(COLOR_LIGHTRED, string);
		Log("logs/csr.log", string); // LINE 1868
		format(STRING, "Admin %s has made you a CSR",GetPlayerNameEx(playerid));
		SendClientMessageEx(giveplayerid, COLOR_WHITE, string);
	}
	else if(PlayerInfo[giveplayerid][pShopTech] == 1)
	{
		PlayerInfo[giveplayerid][pShopTech] = 0;
		format(STRING, "You have taken away %s's CSR!",GetPlayerNameEx(giveplayerid));
		SendClientMessageEx(playerid, COLOR_WHITE, string);
		format(STRING, "AdmCmd: %s has removed %s from the CSR team!",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
		SendAdminMessage(COLOR_LIGHTRED, string);
		Log("logs/csr.log", string); // LINE 1879
		format(STRING, "Admin %s has taken away your CSR",GetPlayerNameEx(playerid));
		SendClientMessageEx(giveplayerid, COLOR_WHITE, string);
	}
	OnPlayerStatsUpdate(giveplayerid);
	return 1;
}
Reply


Messages In This Thread
Error : Log , +rep for help! - by MrCallum - 21.09.2014, 16:42
Re: Error : Log , +rep for help! - by Rudy_ - 21.09.2014, 16:45
Re: Error : Log , +rep for help! - by MrCallum - 21.09.2014, 16:49
Re : Error : Log , +rep for help! - by Anonyme - 21.09.2014, 17:07
Re: Error : Log , +rep for help! - by MrCallum - 21.09.2014, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)