Need Help With XRPC Error.

Havocz Feb 10, 2014

  1. Ha

    Havocz Newbie
    0/47

    Joined:
    Feb 9, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    0
    Hello I am working on an XRPC tool and I cant figure out why it's giving me these errors and I need to know how to fix it. If you could help I would appreciate it thanks.

    [​IMG]
     
  2. Froody

    Froody Developer XPG Developer Lifetime Gold
    55/94

    Joined:
    Jun 10, 2013
    Messages:
    151
    Likes Received:
    145
    Trophy Points:
    55
    Gender:
    Male
    Location:
    Scotland
    Console:
    Xbox
    Try:
    Console.SetMemory(getPlayerState((uint)n) + 0x3218, 2);
     
  3. Ha

    Havocz Newbie
    0/47

    Joined:
    Feb 9, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    0
    That Fixed the Memory error but it didn't fix the n error
    their is still an error with the letter n after ((uint)
     
  4. Froody

    Froody Developer XPG Developer Lifetime Gold
    55/94

    Joined:
    Jun 10, 2013
    Messages:
    151
    Likes Received:
    145
    Trophy Points:
    55
    Gender:
    Male
    Location:
    Scotland
    Console:
    Xbox
    What's the error you're getting?
     
  5. Ha

    Havocz Newbie
    0/47

    Joined:
    Feb 9, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    0
    [​IMG]
    The name "n" does not exist in the current context.
     
  6. pedro210

    pedro210 Newbie
    0/47

    Joined:
    Sep 21, 2012
    Messages:
    311
    Likes Received:
    27
    Trophy Points:
    0
    Console:
    Xbox
    what you defining the n as
     
  7. Ha

    Havocz Newbie
    0/47

    Joined:
    Feb 9, 2014
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    0
    I feel like a noob for this but I don't know how to define something by it's self
     
  8. pedro210

    pedro210 Newbie
    0/47

    Joined:
    Sep 21, 2012
    Messages:
    311
    Likes Received:
    27
    Trophy Points:
    0
    Console:
    Xbox
    well then take out the n unless it means something in your code for example :

    if (this.checkbox.checked = client)
    {
    for (uint n = 0; 0 <=num;)
    {
    Console.SetMemory(getPlayerState((uint)n) + 0x3218, 2);
     
  9. La

    LaHugh Newbie
    0/47

    Joined:
    Sep 8, 2012
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    -__________-

    Don't c&p is the correct answer

    public void Example (int client) // or uint depends how you done playerstate
    {
    Console.SetMemory(getPlayerState(client) + 0x3218, new byte[] {0x2});
    //Console.xbCon.DebugTarget.WriteInt32(getPlayerState(client) + 0x3218, 2);
    }

    Then in a button :

    Example(-1); // sends to all client
     

Share This Page

Close