07.08.2010, 21:23
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.
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
From this
AND this
Help would be much appreciated, Thank you
~Ritchie
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; }
Any idea what im doing wrong?
I also get this warning twice
Код:
warning 211: possibly unintended assignment
Код:
if (OOCStatus = 0)
Код:
if (OOCStatus = 1)
~Ritchie