SA-MP Forums Archive
hwlp to fix command /savecar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: hwlp to fix command /savecar (/showthread.php?tid=173650)



hwlp to fix command /savecar - gondes - 03.09.2010

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;
}




Re: hwlp to fix command /savecar - [HiC]TheKiller - 03.09.2010

What's wrong with it?


Re: hwlp to fix command /savecar - Kyosaur - 03.09.2010

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