From d8ca5633055e8246f8024b8b9fd780670d0bed5c Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sun, 15 Jul 2007 17:22:47 +0000 Subject: [PATCH] use decl please --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401124 --- plugins/basecommands.sp | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/plugins/basecommands.sp b/plugins/basecommands.sp index e0e4a3d1..9a6dca28 100644 --- a/plugins/basecommands.sp +++ b/plugins/basecommands.sp @@ -65,13 +65,13 @@ public Action:Command_BanIp(client, args) return Plugin_Handled; } - new String:arg[50], String:time[20]; + decl String:arg[50], String:time[20]; GetCmdArg(1, time, sizeof(time)); GetCmdArg(2, arg, sizeof(arg)); new minutes = StringToInt(time); - new String:reason[128]; + decl String:reason[128]; if (args >= 3) { GetCmdArg(3, reason, sizeof(reason)); @@ -108,13 +108,13 @@ public Action:Command_AddBan(client, args) return Plugin_Handled; } - new String:arg[50], String:time[20]; + decl String:arg[50], String:time[20]; GetCmdArg(1, time, sizeof(time)); GetCmdArg(2, arg, sizeof(arg)); new minutes = StringToInt(time); - new String:reason[128]; + decl String:reason[128]; if (args >= 3) { GetCmdArg(3, reason, sizeof(reason)); @@ -151,8 +151,9 @@ public Action:Command_Unban(client, args) return Plugin_Handled; } - new String:arg[50], start=0; - new String:new_arg[50]; + decl String:arg[50]; + new start=0; + decl String:new_arg[50]; GetCmdArgString(arg, sizeof(arg)); if (strncmp(arg, "STEAM_0:", 8) == 0) @@ -194,7 +195,7 @@ public Action:Command_Ban(client, args) return Plugin_Handled; } - new String:arg[65]; + decl String:arg[65]; GetCmdArg(1, arg, sizeof(arg)); new clients[2]; @@ -215,7 +216,7 @@ public Action:Command_Ban(client, args) return Plugin_Handled; } - new String:s_time[12]; + decl String:s_time[12]; GetCmdArg(2, s_time, sizeof(s_time)); new time = StringToInt(s_time); @@ -301,7 +302,7 @@ new String:g_FlagNames[FLAG_STRINGS][20] = FlagsToString(String:buffer[], maxlength, flags) { - new String:joins[FLAG_STRINGS][20]; + decl String:joins[FLAG_STRINGS][20]; new total; for (new i=0; i