AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help with compile (error 100 - csgo plugin) (https://forums.alliedmods.net/showthread.php?t=307296)

Di3Z1E 05-03-2018 23:11

Need help with compile (error 100 - csgo plugin)
 
Hello everyone,
I'm trying to make a simple plugin and don't know why it ain't compiling...

here's the code:

Code:

#pragma semicolon 1
#include <sourcemod>
#include <cstrike>
#include <colors>

public Plugin myinfo =
{
        name = "Supporter Help CMDs",
        author = "z4cH3r/Di3Z1E",
        description = "View your tier cmds by entering the folowing chat cmd",
        version = "1.0",
        url = "www.eserv.co.il"
};

public OnPluginStart()

        RegAdminCmd("sm_scmd3", Commands3, ADMFLAG_SLAY);
        RegAdminCmd("sm_scmd2", Commands2, ADMFLAG_SLAY);
        RegAdminCmd("sm_scmd1", Commands1, ADMFLAG_KICK);
}

public Action Commands3(client)
{
                CPrintToChat(client, "{green}[eServ] \x01Available CMD's for Tier 3 is: {green}sm_slay\x01, {green}sm_mute\x01, {green}sm_beacon\x01, {green}sm_slay");
                return Plugin_Handled;
}

public Action Commands2(client)
{
                CPrintToChat(client, "{green}[eServ] \x01Available CMD's for Tier 2 is: {green}sm_slay\x01, {green}sm_mute\x01, {green}sm_beacon\x01, {green}sm_slay\x01, {green}sm_csay\x01/{green}psay\x01, {green}sm_rename\x01, {green}sm_votemap");
                return Plugin_Handled;
}
public Action Commands1(client)
{
                CPrintToChat(client, "{green}[eServ] \x01Available CMD's for Tier 1 is: {green}sm_slay\x01, {green}sm_mute\x01, {green}sm_beacon\x01, {green}sm_slay\x01, {green}sm_csay\x01/{green}psay\x01, {green}sm_rename\x01, {green}sm_votemap\x01, {green}sm_tsay");
                return Plugin_Handled;
}


Error:

Code:

// C:\Users\πσπ\Desktop\Server\Source Mode\tier_cmds.sp(17) : error 100: function prototypes do not match
// C:\Users\πσπ\Desktop\Server\Source Mode\tier_cmds.sp(18) : error 100: function prototypes do not match
// C:\Users\πσπ\Desktop\Server\Source Mode\tier_cmds.sp(19) : error 100: function prototypes do not match

Any idea what's wrong with this code ?
Thank you for you'r help :)

Natsheh 05-04-2018 03:56

Re: Need help with compile (error 100 - csgo plugin)
 
Wrong forums

Di3Z1E 05-04-2018 07:10

Re: Need help with compile (error 100 - csgo plugin)
 
Quote:

Originally Posted by Natsheh (Post 2590635)
Wrong forums

where then ?

OciXCrom 05-04-2018 10:01

Re: Need help with compile (error 100 - csgo plugin)
 
Probably in the CS:GO forums?


All times are GMT -4. The time now is 04:43.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.