Bug fixes.

This commit is contained in:
David Anderson
2014-07-03 00:34:11 -07:00
parent a15153e9b8
commit 438fade64f
3 changed files with 10 additions and 12 deletions
+4 -5
View File
@@ -52,7 +52,7 @@ new g_MapListSerial = -1;
new g_CurrentMapStartTime;
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
public APLRes:AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
decl String:game[128];
GetGameFolderName(game, sizeof(game));
@@ -75,7 +75,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
public OnPluginStart()
{
LoadTranslations("common.phrases");
LoadTranslations("nextmap.phrases");
@@ -110,7 +109,7 @@ public OnConfigsExecuted()
}
}
public Action:Command_List(client, args)
public Action:Command_List(int client, int args)
{
PrintToConsole(client, "Map Cycle:");
@@ -170,7 +169,7 @@ FindAndSetNextMap()
SetNextMap(mapName);
}
public Action:Command_MapHistory(client, args)
public Action:Command_MapHistory(int client, int args)
{
new mapCount = GetMapHistorySize();
@@ -203,7 +202,7 @@ public Action:Command_MapHistory(client, args)
return Plugin_Handled;
}
FormatTimeDuration(String:buffer[], maxlen, time)
FormatTimeDuration(char[] buffer, int maxlen, int time)
{
new days = time / 86400;
new hours = (time / 3600) % 24;