Couple Errors
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(minigun[playerid] == 1)
    {
      GivePlayerWeapon(playerid, 38, 9999);
      new iRandom = random(sizeof(MiniRandSpawn));
      SetPlayerPos(playerid, MiniRandSpawn[iRandom][0], MiniRandSpawn[iRandom][1],MiniRandSpawn[iRandom][2]);
      SetPlayerFacingAngle(playerid, MiniRandSpawn[iRandom][3]);
    }
    else if(cagedm[playerid] == 1)
    { // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< this
      GivePlayerWeapon(playerid, 24, 9999);
      GivePlayerWeapon(playerid, 27, 9999);
      GivePlayerWeapon(playerid, 29, 9999);
      GivePlayerWeapon(playerid, 31, 9999);
      new iRandom = random(sizeof(CageRandSpawn));
      SetPlayerPos(playerid, CageRandSpawn[iRandom][0], CageRandSpawn[iRandom][1],CageRandSpawn[iRandom][2]);
      SetPlayerFacingAngle(playerid, CageRandSpawn[iRandom][3]);
    }
    else if(area51[playerid] == 1)
    {
      GivePlayerWeapon(playerid, 24, 9999);
      GivePlayerWeapon(playerid, 27, 9999);
      GivePlayerWeapon(playerid, 29, 9999);
      GivePlayerWeapon(playerid, 31, 9999);
      GivePlayerWeapon(playerid, 16, 9999);
      SetPlayerPos(playerid, AreaRandSpawn[iRandom][0], AreaRandSpawn[iRandom][1],AreaRandSpawn[iRandom][2]);
      SetPlayerFacingAngle(playerid, AreaRandSpawn[iRandom][3]);
    } // <<<<<<<<<<<<<<<<<<<<<<<<<<<< this
    return 1;
}
That's why you should indent your code .
Reply


Messages In This Thread
Couple Errors - by [WF]Demon - 05.03.2010, 01:29
Re: Couple Errors - by s0nic - 05.03.2010, 01:32
Re: Couple Errors - by [WF]Demon - 05.03.2010, 01:34
Re: Couple Errors - by [WF]Demon - 05.03.2010, 01:58
Re: Couple Errors - by Miguel - 05.03.2010, 02:41
Re: Couple Errors - by [WF]Demon - 05.03.2010, 03:01

Forum Jump:


Users browsing this thread: 6 Guest(s)