AdminMod.de
https://www.adminmod.de/

plugin_map_random
https://www.adminmod.de/viewtopic.php?t=9902
Seite 1 von 1

Autor:  Grudge [ 25.10.2006, 13:16 ]
Betreff des Beitrags:  plugin_map_random

Hallo

währe jemand so lieb und würde mir dieses plugin so ändern das nur 3 maps zur Auswahl stehen anstelle von 5

vielen dank schonmal :)

Dateianhänge:
plugin_map_random.sma [10.3 KiB]
866-mal heruntergeladen

Autor:  [WING] Black Knight [ 25.10.2006, 17:36 ]
Betreff des Beitrags: 

Ändere das
Code:
#define MAX_MAPS 5
in das
Code:
#define MAX_MAPS 3
Dann das
Code:
		vote("Change map to:", VoteMaps[0], VoteMaps[1], VoteMaps[2], VoteMaps[3], VoteMaps[4], strExtend, "HandleMapVote", LoadFile);
	} else {
		vote("Change map to:", VoteMaps[0], VoteMaps[1], VoteMaps[2], "HandleMapVote", LoadFile);
in das
Code:
		vote("Change map to:", VoteMaps[0], VoteMaps[1], VoteMaps[2], strExtend, "HandleMapVote", LoadFile);
	} else {
		vote("Change map to:", VoteMaps[0], VoteMaps[1], VoteMaps[2], "HandleMapVote", LoadFile);
Und das
Code:
		if (WinningOption == 6) {
in das
Code:
		if (WinningOption == 4) {
Ich hoffe, das stimmt dann so. Evtl. ist die letzte Anmerkung auch so zu belassen. Kommt darauf an, mit welcher Zahl Extend gewertet wird. Aber ich tippe mal auf 4.

Autor:  Grudge [ 25.10.2006, 18:37 ]
Betreff des Beitrags: 

ahh ich danke dir :)


EDIT

geht leider nicht

wenn ich das dann neu comilieren will kommt ...

plugin_map_random.sma(250) Warning [217]: loose indentation
plugin_map_random.sma(251) Warning [217]: loose indentation

Autor:  [WING] Black Knight [ 26.10.2006, 15:40 ]
Betreff des Beitrags: 

Ach?! Das sind Warnungen und keine Fehler. :roll: Sollte trotzdem compiliert worden sein. Hast beim reinkopieren vermutlich 2x einen Tabulator vergessen. ;)

Autor:  Grudge [ 26.10.2006, 17:34 ]
Betreff des Beitrags: 

nee das ist es ja, er compiliert es dann nicht :(

oder bist du so lieb und compilierst mir das grade ?

Autor:  [WING] Black Knight [ 26.10.2006, 19:40 ]
Betreff des Beitrags: 

Das sind bloß Warnungen. Sicher, dass Du im richtigen Verzeichnis nachgesehen hast?

Dateianhänge:
Dateikommentar: Auf 3 reduzierte Mapzahl
plugin_map_random.sma [10.25 KiB]
801-mal heruntergeladen

Autor:  Grudge [ 26.10.2006, 21:54 ]
Betreff des Beitrags: 

ja hatte ich .... aber danke dir :)

Seite 1 von 1 Alle Zeiten sind UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/