29.07.2011, 00:39
he forgot a parameter
so it wont work
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;
}