New Errors!
#3

I meant by this code, not the other code. Take a closer look at it
Код:
CMD:aduty(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
	{
	    new string[128];
		if(AdminDuty[playerid] == 0)
		{
				format(string, sizeof(string), "<%s> %s %s is now on duty.",PlayerInfo[playerid][pAdmin], [pAdminTitle], PlayerName(playerid));
				BroadCast(COLOR_YELLOW,string);
				AdminDuty[playerid] = 1;
				SetPlayerColor(playerid, COLOR_BRIGHTRED);
				if(PlayerInfo[playerid][pSex] == 1)
				{
				    SetPlayerSkin(playerid, 217);
				}
				else
				{
				    SetPlayerSkin(playerid, 211);
				}
				return 1;
		}
		else
		{
				format(string, sizeof(string), "<%s> %s %s is now off duty.",PlayerInfo[playerid][pAdmin], [pAdminTitle], PlayerName(playerid));
				BroadCast(COLOR_YELLOW,string);
				AdminDuty[playerid] = 0;
				DestroyDynamic3DTextLabel(AdminLabel[playerid]);
				SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
				if(PlayerInfo[playerid][pDonateRank] == 1 || PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
				{
					SetPlayerColor(playerid, COLOR_YELLOW);
				}
				else if(PlayerInfo[playerid][pDonateRank] >= 4)
				{
					SetPlayerColor(playerid, COLOR_PINK);
				}
				else if(PlayerInfo[playerid][pConnectTime] < 50)
				{
					SetPlayerColor(playerid, COLOR_LIGHTGREEN);
				}
				else
				{
					SetPlayerColor(playerid, COLOR_WHITE);
				}
				return 1;
		}
	}
	return 1;
}
Error is in the red light
please help me fix it and thanks
Reply


Messages In This Thread
New Errors! - by pln102 - 08.05.2013, 04:52
Re: New Errors! - by Yashas - 08.05.2013, 05:38
Re: New Errors! - by pln102 - 08.05.2013, 05:44
Re: New Errors! - by radiobizza - 08.05.2013, 05:59
Re: New Errors! - by pln102 - 08.05.2013, 06:12
Re: New Errors! - by pln102 - 08.05.2013, 12:30

Forum Jump:


Users browsing this thread: 2 Guest(s)