Quote:
Originally Posted by [FU]Victious
pawn Код:
public IsACopCar(carid) { if(carid == CopCar[i]) { for(new i = 0; i < sizeof(CopCar); i++) { SetVehicleNumberPlate(CopCar[i], "Polizei"); } return 1; } return 0; }
Sorry for crappy indentation :P
|
if statement should be IN the loop, fixed indentation too.
pawn Код:
public OnGameModeInit()
{
//at the bottom of your callback, AFTER you create the police cars
for(new i = 0; i < sizeof(CopCar); i++)
{
SetVehicleNumberPlate(CopCar[i], "Polizei");
SetVehicleToRespawn(CopCar[i]);
}
return 1;
}
EDIT: This should be ok now, idk why the code was in "IsACopCar"