9 FREAKING ERRORS I CANNOT FIX THEM !!!! I NEED SERIOUS HELP
#5

Quote:
Originally Posted by //exora
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true) == 0)
    {
            if (PlayerToPoint(1, playerid, -2660.8972,1423.4766,906.4609))
            {
                SetPlayerPos(playerid, 1630.1722,1789.5437,10.8203);
                SendClientMessage(playerid, 0xFF8080FF, " Elevator: Press the 'R' button to lift up to the roof top (( /roof )) ");
                return 1;
            }
    }
    if (strcmp("/roof", cmdtext, true) == 0) // Line 50
    {
      if (elevused[playerid] == 0) // Line 52
        {
            if (PlayerToPoint(4, playerid, 1630.1722,1789.5437,10.8203)) // Line 54
            {
                SendClientMessage(playerid, 0xFF8080FF, " Elevator: You're being lifted up ");
                SetTimer("liftup1", 2000, 1);
                return 1;
            }
        }
    }
    if (strcmp("/exit", cmdtext, true) == 0) // Line 63
    {
        if (elevused[playerid] == 1) // Line 65
        {
            if (PlayerToPoint(4, playerid, 1630.1722, 1789.5437, 10.8203)) // Line 67
            {
                SetPlayerPos(playerid, 1628.8466,1780.0254,30.4688);
                return 1;
            }
        }
    }
    return 0; // Line 74
}
Each time i type a command it says Unknown Command, help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)