Code won't work tough it looks allright!
#1

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...

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;
}
I did use IsTrailerAttachedToVehicle, same thing.
Reply


Messages In This Thread
Code won't work tough it looks allright! - by Zh3r0 - 02.02.2011, 21:27
Re: Code won't work tough it looks allright! - by Krx17 - 02.02.2011, 21:31
Re: Code won't work tough it looks allright! - by Vince - 02.02.2011, 21:33
Re: Code won't work tough it looks allright! - by Mauzen - 02.02.2011, 22:46
Re: Code won't work tough it looks allright! - by Zh3r0 - 03.02.2011, 08:43
Re: Code won't work tough it looks allright! - by Macluawn - 03.02.2011, 08:53
Re: Code won't work tough it looks allright! - by Zh3r0 - 03.02.2011, 08:54

Forum Jump:


Users browsing this thread: 1 Guest(s)