02.02.2011, 21:27
What did i do wrong, this is pathetic ... It does tell me when i don't have a trailer attached, but when i have it code inside the trailer check won't run...
I did use IsTrailerAttachedToVehicle, same thing.
pawn Код:
public OnPlayerEnterCheckpoint( playerid )
{
if ( GetVehicleTrailer(GetPlayerVehicleID(playerid)) )
{
new RandomLoad = sizeof( g_LoadData );
InfoEx( playerid, "Arrived at the loading point...~n~~n~Loading: "_G2"%s~n~~w~Loading Time: %d~n~~w~Destination: "_G3"%s", g_LoadData[ RandomLoad ][ g_LoadName ], g_LoadData[ RandomLoad ][ g_LoadTime ], TruckData[ pData[ playerid ][ RandomPoint ] ][ g_ArriveName ]);
SetTimerEx("Load", g_LoadData[ RandomLoad ][ g_LoadTime ] * 1000, false, "d", playerid,TogglePlayerControllable( playerid, false ) );
}
else Info( playerid, "You need a trailer for this mission! You can either type ~r~~h~/SHOP~w~ and buy one with "_G1"$800" );
return 1;
}