Commands interfering.
#1

Could someone explain to me why /cellout uses /cellin? Or why /fix calls the /fix command, but also goes "Faction: x" - I realize it's because the commands are interfering, but this is pissing me off. Halp plz!

pawn Код:
if(!strcmp(cmdtext, "/cellin", true, 7))
    {
      if(TakingTut[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are viewing the tutorial. You cannot use this command now.");
      if(!IsPlayerInAnyVehicle(playerid))
      {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
        return 1;
        }
    }
    if(!strcmp(cmdtext, "/cellout", true, 8))
    {
      if(TakingTut[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are viewing the tutorial. You cannot use this command now.");
      if(!IsPlayerInAnyVehicle(playerid))
      {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
        return 1;
        }
    }
Reply


Messages In This Thread
Commands interfering. - by IcyBlight - 01.06.2010, 18:10
Re: Commands interfering. - by DJDhan - 01.06.2010, 18:20
Re: Commands interfering. - by IcyBlight - 01.06.2010, 18:25
Re: Commands interfering. - by IcyBlight - 01.06.2010, 22:36
Re: Commands interfering. - by Antonio [G-RP] - 01.06.2010, 22:39
Re: Commands interfering. - by IcyBlight - 01.06.2010, 23:03
Re: Commands interfering. - by IcyBlight - 02.06.2010, 09:50
Re: Commands interfering. - by IcyBlight - 03.06.2010, 08:10

Forum Jump:


Users browsing this thread: 4 Guest(s)