Quote:
Originally Posted by scorpius2k1
I'm not sure what you are trying to do, but cleaning up your existing code and fixing your RegAdminCmd to use an generic admin flag, the following will compile:
PHP Code:
/* Plugin Template generated by Pawn Studio */
#include <sourcemod>
public Plugin:myinfo =
{
name = "5v5comp",
author = "Nik",
description = "5v5 Competitive",
version = "1.0",
url = "http://steamcommunity.com/id/nikizaniki2/"
}
public void OnPluginStart()
{
RegAdminCmd("admin_wait", Command_Wait, ADMFLAG_GENERIC, "Puts Server In Que Mode.");
}
public Action Command_Wait(int client, int args)
{
if (args < 1)
{
PrintToConsole(client, "Usage: admin_wait");
return Plugin_Handled;
}
ServerCommand("exec wait.cfg");
for(int i=0;i<=10;i++){ }
ServerCommand("say Waiting For Players!");
return Plugin_Handled;
}
|
Thanks for helping me (first code ever, i only know some basic c/c++ still in school)
but the programs gives me the same error every time