Author Topic: Player Join, Check BL_ID, than MessageAll  (Read 1030 times)

Ok, I have the script, it's tiny, and I have no clue of whats wrong with it;
Code: (VIPScript) [Select]
package VIPCheck {
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)
{
Parent::LoadMission(%c,%a,%b,%d,%e,%f);
}
if(%client.bl_id == 11050)
{
Messageall(' ',"A V.I.P. has joined the server! The player is:" SPC %say);
};
activatepackage(VIPCheck);
The script is made to Check a certain BL_ID that enters the server and display a message that the person is a VIP (Don't bother me about it.) with the name.
If there is more than one error in the coding please PM me.
« Last Edit: May 09, 2010, 06:28:12 PM by Tyler66 »

Aside from
package VIPCheck {
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)

Parent::LoadMission(%c,%a,%b,%d,%e,%f);
and
if(%client.bl_id == 11050)

I don't know what isn't wrong with it.

Oops forgot to put it the ; after the }
But that wasnt the problem. It was just something I left out on the code.

Quote from: Quoted Code
package VIPCheck {
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)
{
Parent::LoadMission(%c,%a,%b,%d,%e,%f);
}
if(%client.bl_id == 11050)

{
Messageall(' ',"A V.I.P. has joined the server! The player is:" SPC %say);
};
activatepackage(VIPCheck);
The lines in Bold is the ones Blockland is making a fuss about.
« Last Edit: May 09, 2010, 06:32:12 PM by Tyler66 »

Can you use the admin check like everyone else?

Also, you closed the function before you even put in that if statement.

Oops forgot to put it the ; after the }
But that wasnt the problem.
You're right. That would make it even worse.

Can you use the admin check like everyone else?
I sence my stupidity skyrocketing ._.
Also, you closed the function before you even put in that if statement.
Oh.

Code: [Select]
package VIPCheck
{
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)
{
if(%client.bl_id == 11050)
{
Messageall(' ',"A V.I.P. has joined the server! The player is:" SPC %say);
}
Parent::LoadMission(%c,%a,%b,%d,%e,%f);
}
};
activatepackage(VIPCheck);
The only thing I am second guessing is the parent:: but I don't know why.

"c" comes after "a" and "b". And you know exactly what the current %c is, the GameConnection.

I don't see %client and %say being set in that script..

Code: [Select]
package VIPCheck
{
function GameConnection::LoadMission(%c,%a,%b,%d,%e,%f)
{
if(%client.bl_id == 11050)
{
Messageall(' ',"A V.I.P. has joined the server! The player is:" SPC %say);
}
Parent::LoadMission(%c,%a,%b,%d,%e,%f);
}
};
activatepackage(VIPCheck);
The only thing I am second guessing is the parent:: but I don't know why.
Its not. Cause im almost done. If it was the 'Parent::', the "Mission Loading" screen would not load. So basicly you would just sit there doing nothing.

Yay! Done!
Although the clients name causes Syntax Errors...But im not gonna concern about it.
Anyway thanks Kalphiter!

-LOCK-