Stock LoadPlates
#4

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
pawn Код:
stock LoadPlates()
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
            if(IsCopVehicle(i)) return SetVehicleNumberPlate(i, "LSPD");
        else if(IsMedicVehicle(i)) return SetVehicleNumberPlate(i, "LSEMS");
            else if(IsGuardVehicle(i)) return SetVehicleNumberPlate(i, "DoC");
    }
    print("Plates sucessfully loaded.");
    return 1;
}
Give this a shot.
It wont work because at the first loop, it will stop, you used return.

pawn Код:
stock LoadPlates()
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
            if(IsCopVehicle(i)) SetVehicleNumberPlate(i, "LSPD");
        else if(IsMedicVehicle(i)) SetVehicleNumberPlate(i, "LSEMS");
            else if(IsGuardVehicle(i)) SetVehicleNumberPlate(i, "DoC");
    }
    print("Plates sucessfully loaded.");
    return 1;
}
Reply


Messages In This Thread
Stock LoadPlates - by maiky1499 - 26.01.2013, 13:46
Re: Stock LoadPlates - by SAMPHacker - 26.01.2013, 13:51
Re: Stock LoadPlates - by Threshold - 26.01.2013, 13:57
Re : Re: Stock LoadPlates - by lelemaster - 26.01.2013, 16:36
Re: Stock LoadPlates - by maiky1499 - 27.01.2013, 09:29
Re: Stock LoadPlates - by maiky1499 - 30.01.2013, 10:30

Forum Jump:


Users browsing this thread: 2 Guest(s)