Thread: [Solved] I get a compiling error.
View Single Post
nikizaniki2
Junior Member
Join Date: Dec 2017
Old 12-05-2017 , 12:59   Re: I get a compiling error.
Reply With Quote #3

Quote:
Originally Posted by scorpius2k1 View Post
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_WaitADMFLAG_GENERIC"Puts Server In Que Mode.");
}

public 
Action Command_Wait(int clientint 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
nikizaniki2 is offline