Help compile failed??
#1

Help compile failed
Код:
{
			  if (DerbyStarted != 2)
			  {
			    SendClientMessage(playerid, COLOR_GRAD1, "You can't finish a Derby that didn't /derby start yet");
			    return 1;
			  }
			  DerbyStarted = 0;
			  new DerbyWinner = 255;
			  new derbyhealth = 0;
			  new carssurvived = 0;
			  new tmphealth;
			  new derbyid;
			  for (i=0; i<MAX_PLAYERS; i++)
			  {
			    if (DerbyPlayers[i] == 1)
			    {
						derbyid = GetPlayerVehicleID(i);
						if (IsPlayerConnected(i) && IsPlayerInAnyVehicle(playerid) && GetVehicleModel(derbyid) == 504)
						{
						  carssurvived++;
						  GetVehicleHealth(derbyid, tmphealth);
						  if (tmphealth > derbyhealth)
						  {
						    derbyhealth = tmphealth;
						    DerbyWinner = i;
						  }
						}
			    }
			  }
			  format(string, sizeof(string), "A Derby has finished. %d cars survived.", carssurvived);
			  SendClientMessageToAll(TEAM_ORANGE_COLOR, string);
			  if (DerbyWinner != 255)
			  {
				  GetPlayerName(DerbyWinner, playername, sizeof(playername));
				  format(string, sizeof(string), "Our winner is %s, who is getting $%d.", playername, DerbyPrize);
				  SafeGivePlayerMoney(DerbyWinner, DerbyPrize);
			  }
			  else
			  {
			    format(string, sizeof(string), "No one survived in current Destruction Derby.");
			  }
			  SendClientMessageToAll(TEAM_ORANGE_COLOR, string);
			  return 1;
			}
Код:
osc.pwn(13719) : warning 213: tag mismatch
Why?
_________________________________________________
I am not good English. sorry
Reply


Messages In This Thread
Help compile failed?? - by paint36 - 20.04.2009, 19:32
Re: Help compile failed?? - by asdd - 20.04.2009, 19:35
Re: Help compile failed?? - by Donny_k - 20.04.2009, 19:38
Re: Help compile failed?? - by ICECOLDKILLAK8 - 20.04.2009, 19:38
Re: Help compile failed?? - by paint36 - 20.04.2009, 19:45
Re: Help compile failed?? - by Donny_k - 20.04.2009, 19:55
Re: Help compile failed?? - by Klutty - 20.04.2009, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)