Author Topic: Things I need help on:  (Read 942 times)

1. I need to know more about saving/loading strings.
« Last Edit: July 21, 2010, 01:11:27 PM by otto-san »



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.

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: [Select]
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);
}

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

But I mostly need help with #1. :C

Don't tell me you actually have this written in your code
[s]$pref::BossBattles::boss = %c.player;[/s] (Probably should get rid of this, since I'm not using it anymore.)

Don't tell me you actually have this written in your code
[s]$pref::BossBattles::boss = %c.player;[/s] (Probably should get rid of this, since I'm not using it anymore.)
No, I removed that.

Haha.

Mind giving me the code? I cannot seem to find the issue.

Mind giving me the code? I cannot seem to find the issue.
k

All global variables beginning with $pref are saved when Blockland closes, so $pref::BossBattles::inprogress will always be 1.

All global variables beginning with $pref are saved when Blockland closes, so $pref::BossBattles::inprogress will always be 1.
interesting