What am I doing wrong?
#1

Hello,

I am trying to make an /enter cmd for a prison that I am making. Anyway what is wrong with the /enter? When I use it nothing happens ;o

pawn Код:
CMD:enter(playerid)
{
    if(IsVehicleInRangeOfPoint(playerid,5.0,1826.1003,-1538.3463,13.5469)) {
    SetVehiclePos(playerid,1816.8549,-1535.9316,13.3186);
//  SetPlayerPos(playerid,1816.8549,-1535.9316,13.3186);
    }
    {
     SendClientMessage(playerid, COLOR_YELLOW, "");
   }
    return 1;
}


CMD:exit(playerid)
{
    if(IsVehicleInRangeOfPoint(playerid,5.0,1816.8549,-1535.9316,13.3186)) {
    SetVehiclePos(playerid,1826.1003,-1538.3463,13.546);
//  SetPlayerPos(playerid,1826.1003,-1538.3463,13.5469);
    }
    {
     SendClientMessage(playerid, COLOR_YELLOW, "");
   }
    return 1;
}
Reply
#2

nvm, ignore this comment.
Reply
#3

Quote:
Originally Posted by Sphex
Посмотреть сообщение
nvm, ignore this comment.
0_o errr, thanks I guess?
Reply
#4

Whats the errors
Reply
#5

Quote:
Originally Posted by Passout
Посмотреть сообщение
Whats the errors
I never said that there were errors . The command does nothing in game.
Reply
#6

You mean to enter to a interior or vehicle now?
Reply
#7

:O - Tiernan Dillon
Reply
#8

Use (playerid, params[])
Reply
#9

Do you already have a command /enter?,


Im not sure but it might be getting confused with it..


Or you could just create a pickup ingame.. with ingame commands , would be much more time effective and easier
Reply
#10

How about uncommenting setplayerpos line?

EDIT: Show IsVehicleInRangeOfPoint function.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)