help with this error!
#1

helllo guys i have made an warn command its all nice in it just checkout please! and tell me how i can fix this error"

Код:
C:\Users\MrThift\Desktop\MaxAdmin\filterscripts\MaxAdmin.pwn(803) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
to thats thing will be lini 803

{
else
}

Код:
dcmd_warn(playerid, params[])
{
	new
		warnID,
	 	Reason[128];
	if(Player[playerid][admin] < 1)
 		return SendClientMessage(playerid,COLOR_RED,"You Dont Have Right To Use This Command");
	if(sscanf(params,"ud",warnID, Reason))
		return SendClientMessage(playerid, COLOR_RED, "|| Usage: /warn [playerid] [reason] ||");
	if(!IsPlayerConnected(playerid))
		return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID!");
 	new
	 	wString1[128],
	 	wString3[128],
	 	wString4[128],
	 	wString5[128],
	 	wString6[128],
	 	wString7[128],
	 	Name[24];

	if(Player[warnID][Warnings] <= 2)
	GetPlayerName(playerid,Name,24);
	format(wString1,sizeof(wString1), "**(ADMIN WARN)** %s(%d) %s",Name, warnID, Reason);
	SendClientMessageToAll(COLOR_RED, wString1);
	format(wString3,sizeof(wString3), "You Have Been WARNED By Admin For Reason: %s",Reason);
	SendClientMessage(warnID, COLOR_RED, wString3);
	format(wString4,sizeof(wString4), "You Have WARNED %s(%d) For Reason: %s",Name, warnID, Reason);
	SendClientMessage(playerid, COLOR_RED, wString4);
	{
	else
	}
	if(Player[warnID][Warnings] == 3)Kick(warnID);
	GetPlayerName(playerid,Name,24);
	format(wString5,sizeof(wString5), "**(ADMIN KICK)** %s(%d) To many admin warnings",Name, warnID);
	SendClientMessageToAll(COLOR_RED, wString5);
	format(wString6,sizeof(wString6), "You Have Been WARNED By Admin For Reason: To many admin warnings");
	SendClientMessage(warnID, COLOR_RED, wString6);
	format(wString7,sizeof(wString7), "You Have WARNED %s(%d) For Reason: To many admin warnings",Name, warnID);
	SendClientMessage(playerid, COLOR_RED, wString7);
	return 1;
}
Reply


Messages In This Thread
help with this error! - by [MKD]Max - 22.01.2011, 05:12
Re: help with this error! - by Whitetiger - 22.01.2011, 05:25
Re: help with this error! - by [MKD]Max - 22.01.2011, 05:33
Re: help with this error! - by [MKD]Max - 22.01.2011, 05:40
Re: help with this error! - by iggy1 - 22.01.2011, 06:12
Re: help with this error! - by Lorenc_ - 22.01.2011, 06:14

Forum Jump:


Users browsing this thread: 1 Guest(s)