Crashing when compiling
#1

Hello apparently i have got a major bug..

None of my admin cmds doesnt works at all..

this has happend right after i added /undercoveradmin..

This is how it looks alike..
I have tried to add a } at the end of the cmd but then it crashes.

Код:
	if(strcmp(cmd, "/undercoveradmin", true) == 0 || strcmp(cmd, "/uca", true) == 0) // By Chivava
	{
		if(IsPlayerConnected(playerid))
		{
		  new id = ReturnUser(tmp);
		  if(gPlayerLogged[playerid] == 0)
		  {
		    SendClientMessage(playerid, COLOR_GREY, "  You need to login first !");
				return 1;
		  }
		  if(PlayerInfo[playerid][pAdmin] > 0)
		  {
		    if(UnderCoverAdmin[playerid] == 0)
		    {
		      UnderCoverAdmin[playerid] = 1;
		      SetPlayerArmour(playerid, 999);
					SetPlayerHealth(playerid, 999);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "You have went on undercover admin duty.", id);
					SendClientMessage(playerid, COLOR_YELLOW,string);
					if(PlayerInfo[playerid][pAdmin] >= 5)
					{
					  for(new i = 0; i < sizeof(CarInfo); i++)
						{
							SetVehicleParamsForPlayer(i,playerid,0,0);
						}
					}
					return 1;
		    }
		    else if(UnderCoverAdmin[playerid] == 1)
		    {
		      UnderCoverAdmin[playerid] = 0;
		      SetPlayerArmour(playerid, 0);
					SetPlayerHealth(playerid, 100);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "You have went off undercover admin duty.", id);
					SendClientMessage(playerid, COLOR_YELLOW,string);
					return 1;
		    }
		  }
		  else
		  {
		    SendClientMessage(playerid, COLOR_GREY, "  You're not the admin !");
		    return 1;
				}
  			}
Reply


Messages In This Thread
Crashing when compiling - by Chivava - 08.02.2010, 21:00
Re: Crashing when compiling - by akis_tze - 08.02.2010, 21:54
Re: Crashing when compiling - by BlackFoX - 09.02.2010, 01:16
Re: Crashing when compiling - by Chivava - 09.02.2010, 13:46
Re: Crashing when compiling - by (Jeff) - 09.02.2010, 14:11
Re: Crashing when compiling - by Chivava - 09.02.2010, 15:15
Re: Crashing when compiling - by mansonh - 09.02.2010, 15:21
Re: Crashing when compiling - by SlashPT - 09.02.2010, 15:27
Re: Crashing when compiling - by Chivava - 09.02.2010, 15:30
Re: Crashing when compiling - by SlashPT - 09.02.2010, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)