[HELP]How to Teleport Vech while in it
#1

I have a command but i want the car to teleport with the person how do i do this also so they can tele without car all i got is this

Код:
{
	if( !strcmp(cmdtext,"/Drift1",true ))
	{
		SetPlayerPos(playerid, -274.9351,1535.3416,75.3594);
		SendClientMessage(playerid,COLOR_GREEN, "Welcome To drift1");
		return 1;
i tryed to do it
Код:
	if( !strcmp(cmdtext,"/Drift1",true ))
	{
		SetPlayerPos(playerid, -274.9351,1535.3416,75.3594);
		SetVehiclePos(araba, -274.9351,1535.3416,75.3594);
    	PutPlayerInVehicle(playerid,araba,0);
    	TogglePlayerControllable(playerid,1);
		SendClientMessage(playerid,COLOR_GREEN, "Welcome To drift1");
		return 1;
	}
but i got error's
Код:
C:\Users\Caz\Desktop\sampDDRST.win32\gamemodes\lvdm.pwn(153) : error 017: undefined symbol "araba"
C:\Users\Caz\Desktop\sampDDRST.win32\gamemodes\lvdm.pwn(154) : error 017: undefined symbol "araba"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Thank you who comment And Helped

and how dose it work so i can do it for the rest of my 15 teleports i made
Reply
#2

I need Help Badly Sorry About Dubble Post
Reply
#3

pawn Код:
if( !strcmp(cmdtext,"/Drift1",true ))
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
            new vid = GetPlayerVehicle(playerid);
            SetVehiclePos(vid, -274.9351,1535.3416,75.3594);
        }
        else
        {
            SetPlayerPos(playerid, -274.9351,1535.3416,75.3594);
        }
        SendClientMessage(playerid,COLOR_GREEN, "Welcome To drift1");
        return 1;
    }
Reply
#4

Код:
C:\Users\Caz\Desktop\sampDDRST.win32\gamemodes\lvdm.pwn(154) : error 017: undefined symbol "GetPlayerVehicle"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

Typo, but goddamn use your brain a bit.
It's GetPlayerVehicleID.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)