Hello CF.
I got some problems with PHP.
Here is an function:
What it does,it replaces ^5 tag to Cyan color.
Example: ^4CF ^wSLAC server ^4#1 ,the function replaces it with CF SLAC server with blue and white color.
Here you can see it: http://genert.impact.pri.ee/sfsf/server.php?ip=88.198.69.3:27960
As you can see Nexus in colors.
Now the problem is,take a look at title: Server info of ^skkskg^gs^ss
How to make function to get of ^ tags with colors?My brain stucked at this point.
Other problem is:
You see its "No SLAC protection" but where is the picture?
Nop,thats not what I think,I dont wanna add colors.
I wanna get off them.
Like:
^o[ ^1N e X u S ^0] ET - ^103 ^0- [ETPro 3.2.6]
Goes to:
[ N e X u S ] ET - 03 - [ETPro 3.2.6] without colors,just text
alterntive was to use str_replace with regex looking for ^(+a any char max of 1) which should take it down to just one line instead of the 8 line function
True, but if you look above, it was a 20second edit rather than working out the regex. As far as efficiency goes, it isn't going to be much different, especially as it is only called 1 time per page.
Ou,yeah,I was thinking wtf is is P,Im getting understand of splatterladder system.
Well,thank you,I really didnt know that P/12213 means players team positsion,I thank you for that:9
dont click!
and the other problem, i dont know.
It gives error,why "" is empty..
I wanna get off them.
Like:
^o[ ^1N e X u S ^0] ET - ^103 ^0- [ETPro 3.2.6]
Goes to:
[ N e X u S ] ET - 03 - [ETPro 3.2.6] without colors,just text
A quick edit for you, I have not tested it though
http://genert.impact.pri.ee/sfsf/server.php?ip=88.198.69.3:27960
http://genert.impact.pri.ee/sfsf/server.php?ip=188.165.209.117:29000 if you look at team,then you see there is ALLIES stuff.
Its in HTMl,now,I wanna add team.
The system core is: http://paste.entirely.pro/phpsyntax.php?file=eaaih
Now I wanna add team get:
http://paste.entirely.pro/phpsyntax.php?file=0o2kl
and in server.php
Didnt work,maybe you can help me?
The code: http://paste.entirely.pro/phpsyntax.php?file=at3q6
Full core code: http://paste.entirely.pro/phpsyntax.php?file=72q2w
So you will need to compare IDs with the position in that sting I think
Well,thank you,I really didnt know that P/12213 means players team positsion,I thank you for that:9