Fixed!
#1

Yeah I made a /drink command and i type the command and it says "Sever unknown command" even though i get the menu..
Also i have set it so if the player is not near the bar it says "You are not at the Bar" but that does not work..

pawn Код:
if (strcmp("/drink", cmdtext, true, 10) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid, 5.0, 499.2672, -20.6538, 1000.6797))
        {
            ShowMenuForPlayer(Drink, playerid);
        }
    }
    else
    {
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not at the Bar");
        }
        return 1;
    }
Fixed!!
Reply
#2

pawn Код:
if (!strcmp("/drink", cmdtext, true))
{
    if (IsPlayerInRangeOfPoint(playerid, 5.0, 499.2672, -20.6538, 1000.6797))
    {
        ShowMenuForPlayer(Drink, playerid);
        return 1;
    }
    else
        return SendClientMessage(playerid, COLOR_WHITE, "You are not at the Bar");
}
Give that a go.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)