vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Crazy Stuff (https://vborg.vbsupport.ru/showthread.php?t=67857)

SmEdD 08-01-2004 04:26 AM

Crazy Stuff
 
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
Code:

EYE1farcry49001$3-nXs- Clan Server $4v1.1TDMmp_monkeybay_n0.0.0.00524gr_ScoreLimit0 gr_TimeLimit30gr_DamageScale1gr_HeadshotMultiplier10gr_RespawnTime10 gr_PrewarOn0gr_DropFadeTime10gr_FriendlyFire0gr_MinTeamLimit0gr_MaxTeamLimit12gr_InvulnerabilityTimer5 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
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!

Modin 08-02-2004 09:55 PM

you could try a str_replace to change all ='s to ?'s before you explode.


All times are GMT. The time now is 08:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01051 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete