/checkooc - Carlito's Rp
#1

Really stupid question to ask, but here i go..

I'm making a command, /checkooc. Which, well, you can see for yourself basically what it does.

Код:
	if(strcmp(cmd, "/checkooc", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (OOCStatus = 0)
			{
				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "OOC Is Currently Disabled");
			}
			else
			{
			if (OOCStatus = 1)
			{
				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "OOC Is Currenly Enabled");
			}
		}
		}
		return 1;
	}
It works, BUT, when OOC is disabled it still comes back with "OOC Is Currently Enabled"
Any idea what im doing wrong?

I also get this warning twice

Код:
warning 211: possibly unintended assignment
From this

Код:
if (OOCStatus = 0)
AND this

Код:
if (OOCStatus = 1)
Help would be much appreciated, Thank you

~Ritchie
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: 1 Guest(s)