The Daily Click ::. Forums ::. Klik Coding Help ::. online game saving
 

Post Reply  Post Oekaki 
 

Posted By Message

Tiri



Registered
  16/01/2004
Points
  78
19th January, 2004 at 06:56:29 -

ok i have devised a system that will get you take newely registered people to the noob area of my rpg and a certin x and y coordinate and old members there save spot
well the thing is i cant get the server to send the frame level and stats from the INI file i click Get Value(Group and Item) so i can get it for a specific user

and then when i type the stuff in the expression calculator i get this

GroupItemValue( "Settings/Users","User: + SC_GetName$( "MooClick" )","SpawnFrame")

and it says syntax error..there probably is but im not very good with getting stuff from INI files so i dont know what to put can someone help me??

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
19th January, 2004 at 09:48:34 -

old:
GroupItemValue( "Settings/Users","User: + SC_GetName$( "MooClick" )","SpawnFrame")
new:
GroupItemValue( "Settings/Users","User:" + SC_GetName$( "MooClick" ),"SpawnFrame")

easy misake to make X)

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Tiri



Registered
  16/01/2004
Points
  78
19th January, 2004 at 10:27:54 -

now it says please enter a alphanumeric expression

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
19th January, 2004 at 11:22:48 -

it looks like "GroupItemValue" returns an integer (number) so if you want to put the result inside a string then you need to put the whole thing inside "str$()"

str$(GroupItemValue( "Settings/Users","User:" + SC_GetName$( "MooClick" ),"SpawnFrame"))

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Tiri



Registered
  16/01/2004
Points
  78
19th January, 2004 at 12:56:36 -

ok thats in there now but how do i make it teleport tho the frame number it just sent over?

 
n/a

TheAlee



Registered
  27/02/2003
Points
  250
19th January, 2004 at 13:49:56 -

Jump to level, use expression, then get your info from the players save.

eg.

players file :

NAME - Alee PASS - blah E-MAIL - blah FRAME OF LAST SAVE - 5 POSITION - 55,67

i'm not sure if thats what ur looking for, but if you need any help with moo, i'll help u cos i have been using for about a year or so.

- Alee

 
Alee is a Moo proggrammer and is a 3d graphics artist.

Tiri



Registered
  16/01/2004
Points
  78
19th January, 2004 at 15:08:00 -

well i cant really do that cause my ini file is located at the server and that wouldnt work..anyways i added you to my msn buddy list so we could talk..if any one knows how to do this it would be greatly appreciated

 
n/a

Tiri



Registered
  16/01/2004
Points
  78
20th January, 2004 at 15:32:09 -

woohooo i got the server to actually send the data and the game to read it only the game reads the frame as 0 lol ill show ya what i have...ok in the server i have when you login to send the SpawnFrame down subchannel 20 with this code

Str$( GroupItemValue( "Settings/Users", "User:" + SC_GetName$( "MooClick" ), "SpawnFrame" ) )

ok and on the client side it checks if it logs in first then it will start reading the data with this

Player: On Server Message
+ P_OnServerMsg_GetSubchannel( "MooClick" )= 20

and it sets a counter to the recived stats like so

Val( P_OnServerMsg_GetText$( "MooClick" )) i put the Val() there cause i think it changes strings into number right??

anyways i got the counter in the middle of the screen for debugging and it stays 0

so i tried a string i jsut set the string to the server text and that still gave me 0.... can anyone help im so close to getting it

oh ya after that it will jsut get the frame number from the counter to jump to



Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click