I don't know what you want to do, but if you want to parse the file use http://php.net/manual/de/function.parse-ini-file.php
Beiträge von Mirko911
-
-
ah
try to add this after your trim command
$send = str_replace(array('\r','\n'), '', $send);If you open the file with fopen, every line has a Line Break.
In Linux it's \n on OsX it's \r and on Windows, it's both \r\n
http://en.wikipedia.org/wiki/NewlineYou can see this chars, but they are there. So your check if the line is empty fails, because the line isn't really empty,
With str_replace you can remove this line endings, so your code should work. -
so what do you exactly want?
Show all bans of your banlist
Or check if a player with this name has a ban?and why do you use the first 24 chars of a line? A guid has 32 chars, a has a max char length of 15
-
Hey,
show us the plugin code
-
Use this to check if your json files are valid
-
all geoip plugins with a .dat file were made for my servers and they only work correct on my servers because you need to modify a bunch of core stuff which means that you lose support for mam.
Also please don't switch 5 times a day between MAM Version. It's in 99,999% of the time the best, if you use the actual Beta Build (1.0.0-Beta+4) or, if you want a really stable version 0.12. Switching makes it hard to give support or tips.
You also don't need to downgrade PHP if you want to use 0.12
- 0.12 => PHP 5.3 OR newer
- 1.0.0 => PHP 5.4 OR newer
-
if you have linux:
apt-get php5-sockets
-
it's not ready yet.
-
nice.
Which version do you use?
-
das Problem mit Geoip ist die Lizenz.
Dennis kann dir dazu mehr sagen
-
Do you want to install MAM for bf or for cod4?
Is it a windows or a linux server? -
you found a bug
did you modify something in the plugins?
-
Im Grunde ist sowas schon eingebaut und funktioniert. Das Problem ist momentan noch die Geschwindigkeit der Abfrage. Die dauert momentan noch ca 0.3 Sekunden beim ersten abfragen der IP.
-
Hey, mit 1.0.0-Beta4 ist sowas leider noch nicht möglich.
Das liegt momentan daran, dass "Stats" ein eigenes Plugin ist.
Was ich schonmal sagen kann ist, dass "Welcome <PLAYER> from <COUNTRY>" bald verfügbar sein wird.
Das mit der ID und dem "this is your x visit on our server"kann man dann als AddOn zum Plugin veröffentlichen
-
Hey,
Do you need a help text, or do you want that the mam shows the players by just typing !players
For the first one, you are fine with Azads solution
for the second, you need to do it like this$this->mod->registerCommand("cointoss", false, "cointoss", $this);
The second part is the validating of input. You could write a plugin which only accepts text or which only accepts numbers or whatever you want. If you type false here, you don't need a parameter. -
Therefore you've to edit the plugin, which isn't good practise, because if we update plugins, your changes will be overwritten. The best way would be to create a own bannermessages plugin and disable the old one
-
it's a development feature.
If you set logrcon to 1 all incoming and outgoing traffic of the rcon connection will be logged.
In this log you can see which rcon commands were sent and which were received -
Hey,
the actual mam version (1.0.0) is in beta status. There are so many changes from beta build to beta build that it wouldn't be useful to write plugins for it. When we reach the RC Status, we can talk about creating plugins.
Nevertheless I've an idea. Yenz made a Teamspeak Poke Plugins, whichs pokes you on teamspeak.
TS3Poker Plugin . With an alias it should also work with !report.I also don't know if the mail function (mail()) works on windows. If you've a linux server it wouldn't be much work to write it
-
randommapcycle and there are mp_crash and mp_killhouse
-
this can only happen, when something is wrong with your rcon connection (ip + port)