User Tag List

Results 1 to 3 of 3

Thread: not working...

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    not working...

    In my multiplayer game, I'm trying to have the client request it's character's stats, the server sending them, and then the client receiving the stats and storing them in counters. Is this how you would do it.. 'cause it doesn't work..


    Client requesting stats:

    + Channel: On sign on
    - (under Mooclick) Player: Send "I wanna my stats"+"#"+P_GetName$("Mooclick") on subchannel 21 to Server



    Server receiving request and sending stats:

    + Connection: On Client Message
    + SC_OnClientMsg_GetSubchannel( "Mooclick" ) = 21
    + ListGetAt$("StringParser",1)="I wanna my stats"
    - (under Mooclick) Connection: Send GroupItemString$("Ini",listGetAt$("StringParser",2 ), "Level")+"#"+GroupItemString$("Ini",listGetAt$("St ringParser",2), "Mining")+"#"+GroupItemString$("Ini",listGetAt$("S tringParser",2), "Melee")+"#"+GroupItemString$("Ini",listGetAt$("St ringParser",2), "Long-Range")+"#"+GroupItemString$("Ini",listGetAt$("Str ingParser",2), "Sniping")+"#"+GroupItemString$("Ini",listGetAt$(" StringParser",2), "Magic")+"#"+GroupItemString$("Ini",listGetAt$("St ringParser",2), "Cooking")+"#"+GroupItemString$("Ini",listGetAt$(" StringParser",2), "Money")on subchannel 22 to Player



    Client Receiving Message and storing in counters:

    + Player: On Server Message
    + P_OnServerMsg_GetSubchannel("Mooclick")=22
    - (under counter 1) Set Counter to Val(listGetAt$("StringParser", 1))
    - (under counter 2) Set Counter to Val(listGetAt$("StringParser", 2))
    - (under counter 3) Set Counter to Val(listGetAt$("StringParser", 3))
    - (under counter 4) Set Counter to Val(listGetAt$("StringParser", 4))
    - (under counter 5) Set Counter to Val(listGetAt$("StringParser", 5))
    - (under counter 6) Set Counter to Val(listGetAt$("StringParser", 6))
    - (under counter 7) Set Counter to Val(listGetAt$("StringParser", 7))
    - (under counter 8) Set Counter to Val(listGetAt$("StringParser", 8))



    If you know what's wrong, can you please help me?

    Thanks,
    Matteo Kruijssen

  2. #2
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: not working...

    If you are sending them as strings, then why are you using the Val() function.

    ---EDIT---
    I didn't notice you were using them to set counter values. The problem might actually be that your sending the wrong thing actually, because I believe that the ini object has a different expression for numbers.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: not working...

    so I should send them as Val()?

Similar Threads

  1. Gun not working
    By Exploder1010 in forum File Archive
    Replies: 0
    Last Post: 25th December 2011, 12:40 AM
  2. SWF not working
    By BobtheChicken in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 9th January 2011, 01:05 AM
  3. working
    By Zabooza in forum Vitalize
    Replies: 4
    Last Post: 13th April 2009, 05:18 PM
  4. Why is this not working?
    By maestro1 in forum File Archive
    Replies: 5
    Last Post: 23rd April 2008, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •