Lil help with this.
#2

cant pass player id like that try this

pawn Код:
forward CheckTrailer();
public CheckTrailer(){
    for(new i=0;i<MAX_PLAYERS;i++){
        printf("%d",IsTrailerAttachedToVehicle(GetPlayerVehicleID(i)));
        printf("%d",Trucking[i]);
        printf("%d",TimeLeft[i]);
        new vehicleid = GetPlayerVehicleID(i);
        if(Trucking[i] > 1 && !IsTrailerAttachedToVehicle(i)){
            if(TimeLeft[i] == 0) {
                TimeLeft[i] = 60;
                Trucking[i] = 0;
                PlayerInfo[i][pJob] = 0;
                InfoBoxForPlayer(i, "~g~Fired~n~~n~~w~You were supposed to keep it together. The Boss has ~r~fired ~w~you");
                return 0;
            }
            TimeLeft[i] --;
            new string[128];
            format(string, sizeof(string), "You have ~g~%d ~w~seconds left to attach the trailer", TimeLeft[i]);
            GameTextForPlayer(i,string, 1000, 5);
        }
        else {
            TimeLeft[i] = 60;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Lil help with this. - by ihatetn931 - 07.11.2010, 18:58
Re: Lil help with this. - by (SF)Noobanatior - 08.11.2010, 03:40
Re: Lil help with this. - by ihatetn931 - 08.11.2010, 04:58
Re: Lil help with this. - by ihatetn931 - 11.11.2010, 05:51
Re: Lil help with this. - by (SF)Noobanatior - 11.11.2010, 06:04
Re: Lil help with this. - by ihatetn931 - 11.11.2010, 06:16
Re: Lil help with this. - by (SF)Noobanatior - 11.11.2010, 06:21
Re: Lil help with this. - by ihatetn931 - 11.11.2010, 06:31
Re: Lil help with this. - by (SF)Noobanatior - 11.11.2010, 07:16
Re: Lil help with this. - by ihatetn931 - 11.11.2010, 11:01

Forum Jump:


Users browsing this thread: 1 Guest(s)