A small question....
#1

Hello, I got a problem.
I got a code that is supposed to make an attached object on me:
pawn Код:
CMD:enter(playerid, params[])
{
    for(new id = 0; id < sizeof(locations); id++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, locations[id][0], locations[id][1], locations[id][2]))
        {
            if(IsPlayerInRangeOfPoint(playerid, 50, -159.69033813477,-90.585571289063,1066.5211181641))
            {
            SetPlayerAttachedObject( playerid, 0, 1349, 17, -0.571150, 1.182301, -0.020726, 90.395317, 67.863235, 359.453979, 1.000000, 1.000000, 1.000000 ); // CJ_SHTROLLY - shopping
            }
            LoadingForPlayer(playerid,1500,COLOR_GREEN);
            // teleport
            SetPlayerPos(playerid, toPoint[id][0], toPoint[id][1], toPoint[id][2]);
            SetPlayerInterior(playerid, toInterior[id]);
            isInInterior[playerid] = id;
            SendClientMessage(playerid, 0x00FF00AA, "Type /exit to exit the building");
            return 1;
        }
    }
    SendClientMessage(playerid, 0xFF0000AA, "You need to be closer to a pickup to enter a building!");
    return 1;
}
But it wont, also when i use one of these commands in game i get Server: Unknown command.
pawn Код:
CMD:BuyBackpack(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -152.7479,-72.4470,1065.8430))
    {
        SetPlayerAttachedObject( playerid, 0, 3026, 1, -0.135905, -0.035217, -0.004736, 0.000000, 0.000000, 0.000000, 0.938511, 1.195391, 1.403976 );
        GetPlayerMoney(25);
        }
    return 1;
}
CMD:BuyBeer(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -166.8134,-72.7598,1065.8430))
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
        GetPlayerMoney(5);
        }
    return 1;
}
CMD:BuySprunk(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -166.8134,-72.7598,1065.8430))
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
        GetPlayerMoney(5);
        }
    return 1;
}
CMD:BuyWhine(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, -166.8134,-72.7598,1065.8430))
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
        GetPlayerMoney(5);
        }
    return 1;
}
What did i do wrong here? Can anyone give me a hand?
Reply


Messages In This Thread
A small question.... - by justsomeguy - 30.06.2011, 14:55
Re: A small question.... - by justsomeguy - 01.07.2011, 22:51
Re: A small question.... - by Shadoww5 - 02.07.2011, 01:35
Re: A small question.... - by justsomeguy - 02.07.2011, 12:02
Re: A small question.... - by Shadoww5 - 02.07.2011, 12:44
Re: A small question.... - by justsomeguy - 02.07.2011, 15:36
Re: A small question.... - by =WoR=Varth - 03.07.2011, 02:49
Re: A small question.... - by Scenario - 03.07.2011, 04:07
Re: A small question.... - by willsuckformoney - 03.07.2011, 05:41
Re: A small question.... - by Mrminecraft202 - 03.07.2011, 06:03

Forum Jump:


Users browsing this thread: 1 Guest(s)