SmEdD
08-01-2004, 04:26 AM
Ok I am working on a script to display the status of a Far Cry server and I am having a problem with the players part.
This is the code I get when I query the server
EYE1farcry49001$3-nXs- Clan Server $4v1.1TDMmp_monkeybay_n0.0.0.00524gr_ScoreL imit0 gr_TimeLimit30gr_DamageScale1gr_HeadshotMultip lier10gr_RespawnTime10 gr_PrewarOn0gr_DropFadeTime10gr_FriendlyFire0 gr_MinTeamLimit0gr_MaxTeamLimit12gr_Invulnera bilityTimer5 gr_NextMap mp_airstripgr_DedicatedServer0sv_punkbuster1= $4Cyrus031-18m=~~Cinder Maker031-20m=Bubs047-18m= Jack ONeal031-23m= Jack Carver054-29m
This is the players are of the code
=$4Cyrus031-18m=~~Cinder Maker031-20m=Bubs047-18m= Jack ONeal031-23m= Jack Carver054-29m
Sometimes the script has ? instead of the = signs and sometimes it puts = signs in after the whole thing so I was wondering if there is another way to array the players instead of my current method of useing explode which dosn't always work as the charcters switch the occasional time!
This is the code I get when I query the server
EYE1farcry49001$3-nXs- Clan Server $4v1.1TDMmp_monkeybay_n0.0.0.00524gr_ScoreL imit0 gr_TimeLimit30gr_DamageScale1gr_HeadshotMultip lier10gr_RespawnTime10 gr_PrewarOn0gr_DropFadeTime10gr_FriendlyFire0 gr_MinTeamLimit0gr_MaxTeamLimit12gr_Invulnera bilityTimer5 gr_NextMap mp_airstripgr_DedicatedServer0sv_punkbuster1= $4Cyrus031-18m=~~Cinder Maker031-20m=Bubs047-18m= Jack ONeal031-23m= Jack Carver054-29m
This is the players are of the code
=$4Cyrus031-18m=~~Cinder Maker031-20m=Bubs047-18m= Jack ONeal031-23m= Jack Carver054-29m
Sometimes the script has ? instead of the = signs and sometimes it puts = signs in after the whole thing so I was wondering if there is another way to array the players instead of my current method of useing explode which dosn't always work as the charcters switch the occasional time!