message should look like
PHP Code:
message("this is a message");
not
PHP Code:
message this is a message done wrong;
note the quotes and the parenthesis.
Functions need to be wrapped in parenthesis. Also, strings(a series of characters like "asdfghjkl") need to be in qoutes otherwise the computer recognizes them as refering to a variable.
examples:
PHP Code:
setimg("door.png"); //filenames are a string
message(this.hearts); //it's a variable so it doesn't need qoutes
//example with a mixture of both
message("I now have" SPC player.rupees SPC "gralats");
If you want to learn more about functions here you go:
examples of functions with variables:
PHP Code:
freezeplayer(1); //freezes the player for the float (integer that can do decimals) of 1 second.
//this can be changed to
freezeplayer(2); //freezes the player for 2 seconds.
examples of functions with both floats and strings
PHP Code:
triggeraction(30,35,"hit"); // triggers it at x pos of 30 and y of 35, with the command hit.
returning functions
PHP Code:
findplayerbycommunityname("skillmaster19").chat ="I'm awesome";
If you don't understand this I recommend reading twinny's tutorial, its easy and explains most of this in a much less complicated way. Then move onto fowlplay's tutorial that covers more advanced topics.