Setting XP

Hello everyone!!

Can someone help me? Idk why my code doesn’t work :confused:
The idea is that the script sets to the PC enough XP to reach level 10

Take away the “object” and “int” in the last function, and add int before nXPAmount. Like this:

void main()
{

object oPC = GetPCSpeaker();
int nXPAmount = 4500;
SetXP(oPC,nXPAmount);

}
1 Like

Thank you very much, it works perfectly!!

Glad I could help! :slightly_smiling_face:

1 Like