Blockland Forums > Modification Help

Things I need help on:

Pages: (1/3) > >>

otto-san:

1. I need to know more about saving/loading strings.

otto-san:

anyone?

otto-san:

nobody?

Will Smith!:

Well, I don't know if this produces and error, but where you do messageClient, the message is tagged.

you did this:

messageClient(%c,"",'MESSAGE');

but MESSAGE has single quotes, not double quotes. Also, that second argument, you did "" but I normally do '' so its this:

messageClient(%c,'',"\c6See it has single quotes on second arg and double quotes on third!");

But I'm not sure if that will produce and error. Judging by the way you did it, looks like you do it like that all the time.

Also, do you have a semicolon on the last bracket of teh package?

package Test
{
}

is wrong,

package Test
{
};

is right. Common error.

otto-san:

Yes. Will, all of what you said is right.

I do it like that.

Your way works.

And I did put the ; on the end }.

I think it may be a syntax somewhere else. Probably here:


--- Code: --- function sendBossAchievements(%client)
{

sendLockedAchievementToClient(%client, "arrows", "Killer of the Boss", "Kill ten bosses in a row. Nice job.");
sendLockedAchievementToClient(%client, "target", "Boss Novice", "Kill five bosses in a row. Cool.");
sendLockedAchievementToClient(%client, "pwned", "Boss Master", "Kill fifteen bosses in a row. Seriously, how did you manage that?");
}

function GameConnection::onPlayerEnterGame(%this)
{
Parent::onPlayerEnterGame(%this);
sentBossAchievements(%this);
}
--- End code ---

I should probably replace onPlayerEnterGame with onClientEnterGame, right?
Or should I just remove that completely. Achievements never liked me.

Pages: (1/3) > >>

Go to full version