No idea what im doing

Hey, I’ve just started coding and I have no idea why this is wrong or how to execute what I’m trying to do.
I’m trying to add 2 to my skill levels when my player levels up.
my code is
void LevelUp()
{
currentXP = 0;
playerLevel += 1;
print(“CONGRATULATIONS! YOU LEVELED UP”);

if(playerLevel =>1)
{
quiverLevel + 2;
strengthLevel + 2;
skillLevel + 2;
}
}

I know this is wrong but have no idea how to fix it

You can either do

skillLevel = skillLevel + 2;

Or

skillLevel += 2;

1 Like

int currentXP = 0;
int xpThreshold = 100;
int playerLevel = 0;
int strengthLevel = 0;
int quiverLevel = 0;
int skillLevel = 0;
int highXP = 200;
int mediumXP = 100;
int lowXP = 50;

void LevelUp()
{
currentXP = 0;
playerLevel += 1;
print(“CONGRATULATIONS! YOU LEVELED UP”);
xpThreshold = xpThreshold * 2;

if(playerLevel =>1)
{
quiverLevel = quiverLevel + 2;
strengthLevel = strengthLevel + 2;
skillLevel = skillLevel + 2;
}
}

now im getting an error message of
error CS1660: Cannot convert lambda expression to type ‘bool’ because it is not a delegate type

if(playerLevel =>1)

Change to

if(playerLevel >=1)