Problem wihen using void methods inside methods :D
Posted: Fri Jul 14, 2017 5:29 pm
Why do i get an error when i compile code when i do some thing like this? Normally this should work, atleast it works in visual studio.
I get this error code
picture of error message
Whats causing the problem and how do i fix it
Thanks!!
Code: Select all
public void OnStartup()
{
void Life()
{
Game.ShowPopupMessage("life");
}
Life();
}picture of error message
Whats causing the problem and how do i fix it
Thanks!!