/checkooc - Carlito's Rp
#5

When comparing variables in Pawn you need two equal signs to simulate if equal to. Like so

pawn Код:
if(strcmp(cmd, "/checkooc", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (OOCStatus == 0)
            {
                SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "OOC Is Currently Disabled");
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "OOC Is Currenly Enabled");
            }
        }
        return 1;
    }
There's also no need for an extra check, since you already know if it's not 0 it must be enabled.
Reply


Messages In This Thread
/checkooc - Carlito's Rp - by Ritchie999 - 07.08.2010, 21:23
Re: /checkooc - Carlito's Rp - by Kar - 07.08.2010, 21:26
Re: /checkooc - Carlito's Rp - by xfelipex - 07.08.2010, 21:26
Re: /checkooc - Carlito's Rp - by Kar - 07.08.2010, 21:28
Re: /checkooc - Carlito's Rp - by JaTochNietDan - 07.08.2010, 21:29
Re: /checkooc - Carlito's Rp - by xfelipex - 07.08.2010, 21:32
Re: /checkooc - Carlito's Rp - by Kar - 07.08.2010, 21:32
Re: /checkooc - Carlito's Rp - by xfelipex - 07.08.2010, 21:34
Re: /checkooc - Carlito's Rp - by Kar - 07.08.2010, 21:35
Re: /checkooc - Carlito's Rp - by Ritchie999 - 07.08.2010, 21:37

Forum Jump:


Users browsing this thread: 2 Guest(s)