Problem
#1

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACopCar(newcar))
{
new newcar = GetPlayerVehicleID(i);
AddVehicleComponent(GetPlayerVehicleID, 19311);
return 1;
}
}
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsACopCar(newcar))
    {
         new newcar = GetPlayerVehicleID(i);
         AddVehicleComponent(newcar, 19311);
         return 1;
    }
}
Try.
Reply
#3

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsACopCar(newcar))
    {
         new newcar = GetPlayerVehicleID(i);
         AddVehicleComponent(newcar, 19311);
         return 1;
    }
}
Try.
Only work for one player.


pawn Код:
for(new i; i < MAX_PLAYERS; i++)
    if(IsACopCar(GetPlayerVehicleID(i)))
        AddVehicleComponent(GetPlayerVehicleID(i), 19311);
Reply
#4

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACopCar(newcar))
{
new newcar = GetPlayerVehicleID(i);
AddVehicleComponent(GetPlayerVehicleID, 19311);
return 1;
}
}
wats the problem?
Reply
#5

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Only work for one player.


pawn Код:
new newcar;
for(new i = 0; i < MAX_PLAYERS; i++)
{
    newcar = GetPlayerVehicleID(i);
    if(IsACopCar(newcar))
        AddVehicleComponent(newcar, 19311);
}
but will this put above sultan the taxi sign?(taxi04) ?

EDIT:i want to put above my sultan taxi sign find (taxi04) and youle know..
Reply
#6

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Only work for one player.


pawn Код:
new newcar;
for(new i = 0; i < MAX_PLAYERS; i++)
{
    newcar = GetPlayerVehicleID(i);
    if(IsACopCar(newcar))
        AddVehicleComponent(newcar, 19311);
}
Thanks Vini, had forgotten to put the new back Newcar.
Reply
#7

IsACopCar works by model or by ID ?
Reply
#8

model but this isnt what i want..i want to put at sultan attachobject to vehicle i think it is.
Reply
#9

pawn Код:
for(new i, j = GetMaxPlayers(); i != j; i++)
    if(GetVehicleModel(GetPlayerVehicleID(i)) == 560)
        AddVehicleComponent(GetPlayerVehicleID(i), 19311);
Reply
#10

will this attach (taxi04) to sultan?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)