Raised This Month: $51 Target: $400
 12% 

Solved Need help with compile (error 100 - csgo plugin)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Di3Z1E
Member
Join Date: May 2018
Old 05-04-2018 , 07:30   Need help with compile (error 100 - csgo plugin)
#1

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",
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

Last edited by sneaK; 05-04-2018 at 13:17. Reason: restored blanked post
Di3Z1E is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-04-2018 , 07:31   Re: Need help with compile (error 100 - csgo plugin)
#2

public Action Commands3(client, args)
__________________
8guawong is offline
Di3Z1E
Member
Join Date: May 2018
Old 05-04-2018 , 08:24   Re: Need help with compile (error 100 - csgo plugin)
#3

Quote:
Originally Posted by 8guawong View Post
public Action Commands3(client, args)
Thank you for the replay!

I've tried to add this, and the file is compile greatly.

but the plugin itself don't work in-game... any idea why ?

and i typed in console sm plugins and the plugin ain't loaded...

Last edited by Di3Z1E; 05-04-2018 at 08:25.
Di3Z1E is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:56.


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