Raised This Month: $ Target: $400
 0% 

Need help with compile (error 100 - csgo plugin)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Di3Z1E
Member
Join Date: May 2018
Old 05-03-2018 , 23:11   Need help with compile (error 100 - csgo plugin)
Reply With Quote #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/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

Last edited by Di3Z1E; 05-03-2018 at 23:21.
Di3Z1E is offline
 



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 04:43.


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