[HELP]NPC Vehicle BUG!
#1

Hi, I can not get the NPC walk in vehicles.
Try everything, but I stay so the code:
pawn Код:
new AutoTaxi;
new Shamal;

OnPlayerSpawn...
if(!strcmp(nombre, "Conductor_Taxi_LS", true))
    {
    PutPlayerInVehicle(playerid, AutoTaxi, 0);
    new Text3D:TextoBot = Create3DTextLabel("[BOT]Taxista - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
    }
    ShowPlayerMarkers(0);
    if(!strcmp(nombre, "Conductor_Shamal_LS", true))
    {
    PutPlayerInVehicle(playerid, Shamal, 0);
    new Text3D:TextoBot = Create3DTextLabel("[BOT]Avion Shamal - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
    }
    ShowPlayerMarkers(0);
    }

    OnGameModeInit...
    AutoTaxi = AddStaticVehicleEx(420,1827.0239,-1890.7721,13.1912,359.9481,6,1,5000);
    Shamal = AddStaticVehicleEx(519,2024.4341,-2493.9421,14.4611,89.4221,1,1,5000);
If i try to do it in LVDM GM, it works! But in my RP doesn't works

Help me please !
Reply
#2

Quote:
Originally Posted by TiNcH010
Посмотреть сообщение
Hi, I can not get the NPC walk in vehicles.
Try everything, but I stay so the code:
pawn Код:
new AutoTaxi;
new Shamal;

OnPlayerSpawn...
if(!strcmp(nombre, "Conductor_Taxi_LS", true))
    {
    PutPlayerInVehicle(playerid, AutoTaxi, 0);
    new Text3D:TextoBot = Create3DTextLabel("[BOT]Taxista - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
    }
    ShowPlayerMarkers(0);
    if(!strcmp(nombre, "Conductor_Shamal_LS", true))
    {
    PutPlayerInVehicle(playerid, Shamal, 0);
    new Text3D:TextoBot = Create3DTextLabel("[BOT]Avion Shamal - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
    }
    ShowPlayerMarkers(0);
    }

    OnGameModeInit...
    AutoTaxi = AddStaticVehicleEx(420,1827.0239,-1890.7721,13.1912,359.9481,6,1,5000);
    Shamal = AddStaticVehicleEx(519,2024.4341,-2493.9421,14.4611,89.4221,1,1,5000);
If i try to do it in LVDM GM, it works! But in my RP doesn't works

Help me please !
Edit:
Does it attach TextLabel to bot? if not, something is wrong with your name check (strcmp).
Reply
#3

The name and strcmp has nothing to do ¬¬
No cars go no more. walk if he walks. and the code that I put everything I have defined: (
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)