I have a little problem with this If statement, and i cant figure out why its giving my an error message.
The message is "error line 7: expected ;"
this leads me to believe the "else" is missing a semicolon~ but in other if statements i have seen it is not needed, and even when i put one in, i get the same error.
Here is the line of code
- Code: Select all
if(energyNum >= 1);
{
CreateActor("energyshot", "energy ball", "(none)", "(none)", 0, 0, false);
energyammo.textNumber = energyammo.textNumber -= 1;
}
else
{
PlaySound2("C:\\Users\\Rage\\Desktop\\FMP work\\My work\\Armored Retribution\\data\\Error.wav", 1.000000, 1, 0.000000);
}
Any help would be very very appreciated.
Thank you