I need help!!!!
#1

This, I wanted to know the "PlayerNameCapping" if he is in pGang 20012014 it will show "Shutting down by the POLICE"

I tried this

Код:
CMD:pointinfo(playerid, params[])
{
	new
		iCount,
		szMessage[128];

	SendClientMessage(playerid, COLOR_NEWS, "Point Info:");
	for(new i; i < MAX_POINTS; i++) {
		if(Points[i][Type] >= 0) {
		    if(Points[i][Vulnerable] == 0 && Points[i][TakeOverTimerStarted] > 0)
			{
				if(Points[i][TakeOverTimer] == 0)
				{
				    if(PlayerInfo[PlayerNameCapping][pGang] == 20012014)
				    {
				        format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Shutting down by the POLICE | Time left: Less than 1 minute", Points[i][Name], Points[i][PlayerNameCapping]);
				    }
					else
					{
					    format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Family: %s | Time left: Less than 1 minute", Points[i][Name], Points[i][PlayerNameCapping], FamilyInfo[Points[i][ClaimerTeam]][FamilyName]);
					}
					SendClientMessage(playerid, COLOR_WHITE, szMessage);
					iCount++;
				}
				else
				{
					if(PlayerInfo[PlayerNameCapping][pGang] == 20012014)
					{
					    format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Shutting down by the POLICE | Time left: %d minutes", Points[i][Name], Points[i][PlayerNameCapping], Points[i][TakeOverTimer]);
					}
					else
					{
					    format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Family: %s | Time left: %d minutes", Points[i][Name], Points[i][PlayerNameCapping], FamilyInfo[Points[i][ClaimerTeam]][FamilyName], Points[i][TakeOverTimer]);
					}
					SendClientMessage(playerid, COLOR_WHITE, szMessage);
					iCount++;
				}
			}
		}
	}
	if(iCount == 0)
		return SendClientMessage(playerid, COLOR_GRAD2, "No family has capped the point or the point is not ready to be capped.");
	return 1;
}
but it give me couple of errors,

hope i will get a help! sorry for my bad english
Reply
#2

is there any solution? this is the only ONE THING Needs to do so i can start my NEW server
Reply
#3

Maybe you missed something brackets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)