Will this work
#4

Quote:
Originally Posted by cj101
first ,make that a boolean. (bool)

then heres the command

Код:
if (strcmp("/c4buy", cmdtext, true, 10) == 0)
	{
	if(C4BUY[playerid] == true) return SendClientMessage(playerid,0xFF0000AA,"You already have one!");
    C4BUY[playerid] = true;
    SendClientMessage(playerid,0xFF0000AA,"Bought.");
		return 1;
	}
Ok little edit, See if this will work

pawn Код:
if (strcmp("/c4buy", cmdtext, true))
    {
    if(C4BUY[playerid] == true) return SendClientMessage(playerid,0xFF0000AA,"You already have one!");
    else if(C4BUY[playerid] == false)
    SendClientMessage(playerid, 0xFF0000AA, "You have purchased C4");
    C4BUY[playerid] == true)
    return 1;
    }
Reply


Messages In This Thread
Will this work - by JoeDaDude - 14.06.2009, 22:28
Re: Will this work - by Weirdosport - 14.06.2009, 22:31
Re: Will this work - by CJ101 - 14.06.2009, 22:32
Re: Will this work - by JoeDaDude - 14.06.2009, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)