07.08.2010, 21:29
When comparing variables in Pawn you need two equal signs to simulate if equal to. Like so
There's also no need for an extra check, since you already know if it's not 0 it must be enabled.
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;
}