Benutzerinformationen überspringen
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »TempletonPeck« (27. Juli 2011, 23:47)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
/* For the "mapchooser" plugin */
"mapchooser"
{
stock GetRealClientCount( bool:inGameOnly = true ) {
new count = 0;
for( new i = 1; i <= GetMaxClients(); i++ ) {
if( ( ( inGameOnly ) ? IsClientInGame( i ) : IsClientConnected( i ) ) && !IsFakeClient( i ) ) {
count++;
}
}
return count;
if (count < 5);
{
"file" "votemaplist.txt"
}
else if (count > 5);
{
"file" "votemaplist2.txt"
}
}
|
Benutzerinformationen überspringen
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein

Ist jetzt nur eine Vermutung, aber "invalid token" könnte der Bindesstrich bei "css-public" sein. Ich erinnere mich dunkel, dass ich damit auch schon mal Probleme hatte und verwende statt dessen immer einen Unterstrich.L 07/28/2011 - 12:34:20: Info (map "de_cbble") (file "errors_20110728.log")
L 07/28/2011 - 12:34:20: [SM] Could not parse file "/home/gs/css-public/orangebox/cstrike/addons/sourcemod/configs/maplists.cfg"
Benutzerinformationen überspringen
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein
Benutzerinformationen überspringen
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein

|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
stock GetRealClientCount(bool:inGameOnly = true)
{
new clients = 0
for(new i = 1; i <= MaxClients; i++)
{
if(((inGameOnly) ? IsClientInGame(i) : IsClientConnected(i)) && !IsFakeClient(i))
{
clients++
}
}
return clients
}
public OnConfigsExecuted()
{
if (GetRealClientCount() < 5)
{
if (ReadMapList(g_MapList,
g_mapFileSerial,
"mapchooser",
MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER)
!= INVALID_HANDLE)
}
else
{
if (ReadMapList(g_MapList,
g_mapFileSerial,
"mapchooser2",
MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER)
!= INVALID_HANDLE)
}
|

Dieser Beitrag wurde bereits 9 mal editiert, zuletzt von »MadMakz« (2. August 2011, 17:15)