[Include] CreateVehicleForPlayer - Use Names to create vehicles, Easily.
#15

he forgot a parameter
so it wont work

pawn Код:
CMD:car(playerid, params[])
{
    new vname[20];
    if(!sscanf(params,"s[20]",vname))
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            CreateVehicleForPlayer(playerid, vname, -1, -1,1000.0); // he forgot VehicleHealth
        } else SendClientMessage(playerid, COLOR_RED, "You already have a vehicle.");
    } else SendClientMessage(playerid, COLOR_RED, "Usage: /car [vehicle name]");
    return true;
}
Reply


Messages In This Thread
CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by iPLEOMAX - 26.06.2011, 19:59
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by FireCat - 26.06.2011, 21:52
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Markx - 26.06.2011, 22:28
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by RyDeR` - 26.06.2011, 22:31
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by iPLEOMAX - 26.06.2011, 22:37
Re : CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by ludesert - 29.06.2011, 14:08
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by juraska - 29.06.2011, 14:10
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by sasuga - 29.06.2011, 14:49
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Genious - 29.06.2011, 15:03
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by yuri29971102 - 01.07.2011, 14:00
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by marwan - 01.07.2011, 14:23
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by iPLEOMAX - 01.07.2011, 14:27
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Horrible - 15.07.2011, 08:40
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Horrible - 28.07.2011, 23:59
AW: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Tigerkiller - 29.07.2011, 00:39
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Zh3r0 - 29.07.2011, 00:47
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by iPLEOMAX - 29.07.2011, 11:10
AW: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Pablo Borsellino - 29.07.2011, 11:29
Re: AW: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by iPLEOMAX - 29.07.2011, 11:34
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Killer786 - 12.10.2011, 14:38
Re : CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by TheBest6 - 12.10.2011, 15:51
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by Emmet_ - 12.10.2011, 15:57
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by JaTochNietDan - 12.10.2011, 19:45
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by iPLEOMAX - 12.10.2011, 19:48
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by THE_KING$5$ - 15.10.2011, 11:22
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by THE_KING$5$ - 15.10.2011, 11:25
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by gamer931215 - 15.10.2011, 11:25
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by manchestera - 20.11.2011, 17:26
Respuesta: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by [Nikk] - 26.12.2011, 22:25
Re: CreateVehicleForPlayer - Use Names to create vehicles, Easily. - by [xT]Emaratii - 28.06.2012, 10:59

Forum Jump:


Users browsing this thread: 4 Guest(s)