Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
diegoharsh
Try This
Code:
#region :fly <roomid>
case "fly":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int fly = dbClient.getInt("SELECT fly FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (fly == 1)
{
int roomid = int.Parse(args[1]);
Room.sendData("D^" + "H" + Encoding.encodeVL64(roomid));
Room.sendSaying(roomUser, "*Starts Engine and Takes Off*");
}
break;
}
}
}
}
#endregion
Error 1 Control cannot fall through from one case label ('case "fly":') to another C:\Users\brad\Desktop\holo v24\TDP\Source\Virtual\Users\virtualUser.cs 4591 21 Holograph Emulator
on this 1 now,
Re: [SERVICE] Custom Commands Database - Request/Post Here
Code:
#region :fly <roomid>
case "fly":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int fly = dbClient.getInt("SELECT fly FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (fly == 1)
{
int roomid = int.Parse(args[1]);
Room.sendData("D^" + "H" + Encoding.encodeVL64(roomid));
Room.sendSaying(roomUser, "*Starts Engine and Takes Off*");
}
break;
}
}
}
#endregion
Try That.
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
Him.
Code:
#region :fly <roomid>
case "fly":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int fly = dbClient.getInt("SELECT fly FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (fly == 1)
{
int roomid = int.Parse(args[1]);
Room.sendData("D^" + "H" + Encoding.encodeVL64(roomid));
Room.sendSaying(roomUser, "*Starts Engine and Takes Off*");
}
break;
}
}
}
#endregion
Try That.
Whats wrong with it isnt the brackets its the break;
It should be:
[QUOTE=Him.;5780283]
Code:
#region :fly <roomid>
case "fly":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
if (isworking == 1)
{
int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
int fly = dbClient.getInt("SELECT fly FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
if (fly == 1)
{
int roomid = int.Parse(args[1]);
Room.sendData("D^" + "H" + Encoding.encodeVL64(roomid));
Room.sendSaying(roomUser, "*Starts Engine and Takes Off*");
}
}
}
break;
}
#endregion
That works?
Yes it does.
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
settaz
It's Dissi's Holo Pooling. Not really sure whicg one it is.
It should be the TDBP code, but try both.
Re: [SERVICE] Custom Commands Database - Request/Post Here
Here we go another spam thread...
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
Expliot
Here we go another spam thread...
How exactly?
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
swimoTheBig
It should be the TDBP code, but try both.
I tried both and I get a bunch of errirs
Re: [SERVICE] Custom Commands Database - Request/Post Here
Did You enter In Right Place 50Evil Sorry Im Just A Beginner Sp Cant Do That
Re: [SERVICE] Custom Commands Database - Request/Post Here
what is the exact snippet
to add a effect to a command?
Re: [SERVICE] Custom Commands Database - Request/Post Here
anyways i got it to work i just made a command that updates it in the db :)
Re: [SERVICE] Custom Commands Database - Request/Post Here
Has anyone figured out the toll command?
Re: [SERVICE] Custom Commands Database - Request/Post Here
:freeze
UberEmu
It freezes a target
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
settaz
Has anyone figured out the toll command?
Did u enter In Room Action? 50Vil Thanks That Might Just Solved My Problem
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
settaz
Has anyone figured out the toll command?
Is it the command or the function you are having problems with?
Re: [SERVICE] Custom Commands Database - Request/Post Here
Quote:
Originally Posted by
swimoTheBig
Is it the command or the function you are having problems with?
The function is the problem.