hwlp to fix command /savecar
#1

How to fix this command /savecar
Quote:

GetPlayerPos( playerid, CarToX, CarToY, CarToZ);
physical_car_id = CreateVehicle(carid, CarToX, CarToY+4, CarToZ, 90, -1, -1, -1);

format( string, sizeof( string ), "You have spawned model ID %d. If you wish to save this, type /savecar.", carid);
SendClientMessage( playerid, WHITE, string);


AdminSpawned[SpawnedVehicles] = physical_car_id;
SpawnedVehicles++;

PutPlayerInVehicle( playerid, physical_car_id, 0 );
LinkVehicleToInterior(physical_car_id, GetPlayerInterior( playerid ) );
SetVehicleVirtualWorld(physical_car_id, GetPlayerVirtualWorld( playerid ) );
}
else
{
SendClientMessage( playerid, WHITE, "Despawn the current spawned vehicles before spawning any more (or attempting to do so)." );
}
}
}
return 1;
}

Reply
#2

What's wrong with it?
Reply
#3

Whats wrong with my command:

pawn Код:
COMMAND:epic(playerid, params[])
{
    if(!isnull(params))
    {
Kind of hard to tell without me specifying what exactly is wrong with it, and without me posting all of my code, right? :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)