Dm command isn't working :(
#2

pawn Код:
if(strcmp("/dm", cmdtext, true, 10) == 0)
    {
        indm[playerid] = 1;
    return 1;
    }
    if(strcmp("/exitdm", cmdtext, true, 10) == 0)
    {
        indm[playerid] = 0;
    return 1;
    }
    if(strcmp("/test", cmdtext, true, 10) == 0)
    {
        if(indm[playerid] == 1)
        {
        SendClientMessage(playerid, red, "u're in dm");
        } else {
        SendClientMessage(playerid, yellow, "u aren't in dm");
        return 1;
        }
    }
Try this, and make sure you define indm
Reply


Messages In This Thread
Dm command isn't working :( - by PRANK - 16.08.2011, 22:57
Re: Dm command isn't working :( - by ElieJabbour - 17.08.2011, 02:12

Forum Jump:


Users browsing this thread: 1 Guest(s)