Log error
#1

Код:
C:\Documents and Settings\Mikjo\Desktop\Roleplay\gamemodes\rp.pwn(13988) : error 017: undefined symbol "Log"
I start gm from 0 and i make forward and public for log and add in this command
Код:
CMD:fine(playerid, params[])
{
	new string[128], giveplayerid, amount, reason[64];
	if(sscanf(params, "uds", giveplayerid, amount, reason)) return SendClientMessage(playerid, COLOR_WHITE, "Koristi: /fine [playerid] [suma] [pricina]");

	if (PlayerInfo[playerid][pAdmin] >= 1)
	{
		if(IsPlayerConnected(giveplayerid))
		{
			if (amount > 50000)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Sumata nesmee da bide pogolema od 50000 $");
				return 1;
			}
			new year, month,day;
			getdate(year, month, day);
			format(string, sizeof(string), "LG Security: %s e kaznet so $% od administrator %s, pricina: %s(%d-%d-%d)", GetPlayerName(giveplayerid), amount, GetPlayerName(playerid), reason, month, day, year);
			Log("logovi/adminlog.log", string);
			format(string, sizeof(string), "LG: %s e kaznet so $% od administator %s, pricina: %s", GetPlayerName(giveplayerid), amount, GetPlayerName(playerid), reason);
			SendClientMessageToAll(COLOR_LIGHTRED, string);
			GivePlayerCash(giveplayerid, -amount);
			return 1;
		}
		else SendClientMessage(playerid, COLOR_GRAD1, "Pogresen id na igrac.");
	}
	else
	{
		SendClientMessage(playerid, COLOR_WHITE, "Nemate ovlastuvanje za koristenje na ovaa komanda.");
	}
	return 1;
}
And give me error.
How to fix this
Reply


Messages In This Thread
Log error - by Zumba - 12.03.2013, 21:14
Re: Log error - by Zumba - 12.03.2013, 21:50
Re: Log error - by Bicentric - 12.03.2013, 21:55
Re: Log error - by Calabresi - 12.03.2013, 21:55

Forum Jump:


Users browsing this thread: 2 Guest(s)