What's new

.NET XRPC xNotify Code

  • Thread starter Toothless
  • Start date
  • Views 2,467
T

Toothless

7s Official Dragon
Messages
2,382
Reaction score
1,253
Can someone shows me what it should look like in Visual Studio?
 
Z

Z61

Some times our saints are sinners
Retired
Messages
5,476
Reaction score
3,426
Honestly, you couldn't be more vague.
 
C

Cakes

お前はもう死んでいる
VIP
Retired
Messages
20,791
Reaction score
20,215
Can someone shows me what it should look like in Visual Studio?
I don't remember the arguments for the function, but it's basically this. Notify is spelled wrong because it's spelled wrong in XRPC. The correct args should pop up in intellisense for you.

Code:
XRPC jtag = new XRPC();

jtag.XNotiy(args);
 
C

Cakes

お前はもう死んでいる
VIP
Retired
Messages
20,791
Reaction score
20,215
Can you show me where at?
Your error list should say where it's missing.

EDIT: There are other errors with your code...you should really learn to use the IDE better. :tongue:
 
T

Toothless

7s Official Dragon
Messages
2,382
Reaction score
1,253
Your error list should say where it's missing.

EDIT: There are other errors with your code...you should really learn to use the IDE better. :tongue:
Thank you. I'm just confused on how the xNotify should look when it is coded in.
 
C

Cakes

お前はもう死んでいる
VIP
Retired
Messages
20,791
Reaction score
20,215
Thank you. I'm just confused on how the xNotify should look when it is coded in.
The error in your solution is not with the XNotify statement. Which you can obviously see because it's not underlined with the error squiggle. The error is with the placement of your else condition. From what I can see, it's not inside the same block as your if statement.
 
D

DaftHacker

Jet fuel can't melt steel beams
Messages
2,610
Reaction score
918
Why do you have a while statement ? There's no need for it unless you want it to freeze your program(guessing your not using threading) and have the message constantly pop up. Also that's not C/C++ code, that's .NET. As others have said you should learn to program before you directly hop into the console modding/programming world.
 
M

MatthewH

Member
Messages
1,604
Reaction score
629
Why do you have a while statement ? There's no need for it unless you want it to freeze your program(guessing your not using threading) and have the message constantly pop up.
One thing at a time. He doesn't know how to use brackets so let's help him figure out the basics first. :tongue:
 
D

DaftHacker

Jet fuel can't melt steel beams
Messages
2,610
Reaction score
918
One thing at a time. He doesn't know how to use brackets so let's help him figure out the basics first. :tongue:
Better to tell him what's wrong with all his code now than to have him ask for help again and not tell him what's wrong with his code the first time.
 
C

Cakes

お前はもう死んでいる
VIP
Retired
Messages
20,791
Reaction score
20,215
Why do you have a while statement ? There's no need for it unless you want it to freeze your program(guessing your not using threading) and have the message constantly pop up. Also that's not C/C++ code, that's .NET. As others have said you should learn to program before you directly hop into the console modding/programming world.
LOL, I just realized he had the Notify in a while loop. Don't do that Toothless, your xbox will most definitely crash or freeze up.
 
T

Toothless

7s Official Dragon
Messages
2,382
Reaction score
1,253
LOL, I just realized he had the Notify in a while loop. Don't do that Toothless, your xbox will most definitely crash or freeze up.
I just want text to appear on the console when the tool is connected for the first time.
 
G

GFX

Build: 7A176x
Messages
530
Reaction score
127
If Jtag.activeConnection Then
Jtag.Notify(XRPC.XNotiyLogo.FLASHING_DOUBLE_SIDED_HAMMER, "Toothless Blah Blah Blah")
Else
MsgBox("You need to connect 1st or something")



FLASHING_DOUBLE_SIDED_HAMMER, I like it b/c it's coooool to see :smile:
 
T

Toothless

7s Official Dragon
Messages
2,382
Reaction score
1,253
If Jtag.activeConnection Then
Jtag.Notify(XRPC.XNotiyLogo.FLASHING_DOUBLE_SIDED_HAMMER, "Toothless Blah Blah Blah")
Else
MsgBox("You need to connect 1st or something")



FLASHING_DOUBLE_SIDED_HAMMER, I like it b/c it's coooool to see :smile:
I know but I'm just learning C#.
 
X

xBlueBerryKushx

Newbie
Messages
12
Reaction score
0
x.Notify(XRPC.XNotiyLogo.GAMERTAG_WANTS_YOU_TO_JOIN_AN_XBOX_LIVE_PARTY, textBox1.Text);
 
O

Onlineweare

Inspiration is key
Messages
1,475
Reaction score
555
I know but I'm just learning C#.
If you can't convert what he gave you to C# then you really don't know what you're doing. But hey I was the same way learning.
Code:
if (Jtag.activeConnection) {
   Jtag.Notify(XRPC.XNotiyLogo.FLASHING_DOUBLE_SIDED_HAMMER, "Toothless Blah Blah Blah")
} else {
   MessageBox.Show("No connection established!");
}
 
O

ObscureCoder

Enthusiast
Messages
685
Reaction score
308
Kind of just posted that.. but ok?
What you posted was VB .net. A useless language.
Saying that, if OP can't convert that to C# then he may as well give up since VB is literally just compilable pseudo-code.
 
Top Bottom