What's new

.NET XRPC xNotify Code

  • Thread starter Toothless
  • Start date
  • Views 3,126
T

Toothless

7s Official Dragon
Messages
2,368
Reaction score
1,258
Points
495
Sin$
0
Can someone shows me what it should look like in Visual Studio?
 
Z61

Z61

Some times our saints are sinners
Retired
Programmer Forum Addict Odysseus' Summit
Messages
5,468
Reaction score
3,429
Points
1,042
Sin$
0
Honestly, you couldn't be more vague.
 
Cakes

Cakes

お前はもう死んでいる
VIP
Retired
Mythical Veteran Platinum Record End of the Year 2017
Messages
20,705
Reaction score
20,272
Points
3,870
Sin$
-7
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);
 
T

Toothless

7s Official Dragon
Messages
2,368
Reaction score
1,258
Points
495
Sin$
0
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.
 
Cakes

Cakes

お前はもう死んでいる
VIP
Retired
Mythical Veteran Platinum Record End of the Year 2017
Messages
20,705
Reaction score
20,272
Points
3,870
Sin$
-7
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.
 
DaftHacker

DaftHacker

Jet fuel can't melt steel beams
Programmer Forum Addict Fabled Veteran
Messages
2,606
Reaction score
917
Points
440
Sin$
7
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.
 
P

pwfdc

Member
Bright Idea Programmer Experienced Veteran
Messages
1,540
Reaction score
677
Points
465
Sin$
0
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:
 
DaftHacker

DaftHacker

Jet fuel can't melt steel beams
Programmer Forum Addict Fabled Veteran
Messages
2,606
Reaction score
917
Points
440
Sin$
7
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.
 
Cakes

Cakes

お前はもう死んでいる
VIP
Retired
Mythical Veteran Platinum Record End of the Year 2017
Messages
20,705
Reaction score
20,272
Points
3,870
Sin$
-7
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,368
Reaction score
1,258
Points
495
Sin$
0
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.
 
GFX

GFX

Build: 7A176x
Messages
530
Reaction score
127
Points
95
Sin$
0
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,368
Reaction score
1,258
Points
495
Sin$
0
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#.
 
xBlueBerryKushx

xBlueBerryKushx

Newbie
Messages
12
Reaction score
0
Points
35
Sin$
7
x.Notify(XRPC.XNotiyLogo.GAMERTAG_WANTS_YOU_TO_JOIN_AN_XBOX_LIVE_PARTY, textBox1.Text);
 
Onlineweare

Onlineweare

Inspiration is key
Grizzled Veteran Experienced Veteran 10th Anniversary
Messages
1,475
Reaction score
555
Points
245
Sin$
0
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!");
}
 
ObscureCoder

ObscureCoder

Enthusiast
Messages
684
Reaction score
308
Points
125
Sin$
0
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
Login
Register