I would like to create a semblance of missions for the firefighters. Beginning of the script works. Activation of the script begins with the sphere.
function onPlayerEnterSphere( pPlayer, sphere )
{
if ( sphere.ID == 9 )
{
BigMessage( pPlayer"~r~fight with fire!!!", 6000, 2 );
CreateExplosion( 1141.2, -64, 7.47, 5 );
CreateExplosion( 1141.2, -68, 7.47, 5 );
CreateBlip(BLIP_NONE, 1141.2, -68, 7.47);
CreateFire( 1141.2, -68, 7.47, 15.0 );
But when I add this part, the game crashes.
else if ( ExtinguishFire( 1141.2, -68, 7.47, 15.0 ) );
{
RemoveBlip(BLIP_NONE, 1141.2, -68, 7.47);
RemoveFire( 1141.2, -68, 7.47, 15.0 );
pPlayer.Cash = pPlayer.Cash + 200;
}
}
return 1;
}
What is my mistake?