Posts: 1,564
Threads: 98
Joined: Apr 2011
Reputation:
0
Or use a loop, or make the public like: " public IsACopCar(carid, playerid) "
Posts: 194
Threads: 63
Joined: Feb 2011
Reputation:
0
How can i make a loop ?
When I make
public IsACopCar(carid, playerid)
I recive
gf.pwn(2490) : error 025: function heading differs from prototype
Posts: 2,431
Threads: 86
Joined: Nov 2009
Reputation:
0
Just use the loop way. It'll be easier for you, since you can copy paste it -_-
Posts: 194
Threads: 63
Joined: Feb 2011
Reputation:
0
Doesn't work with a loop, another ideea to make isacopcar with car model, NO with car id
Posts: 288
Threads: 2
Joined: Sep 2009
pawn Код:
public IsACopCar(carid)
{
new model = GetVehicleModel(carid);
if (model == 425||model == 527||model == 520||model == 497||model == 470||model == 432||model == 428||model == 427||model == 423||model >= 596 && model <=599||model == 601)
{
return 1;
}
return 0;
}
But you will need to use something like this: IsCopCar(GetPlayerVehicleID(playerid));