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

Help with very simple plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
94mudkips
New Member
Join Date: Jan 2019
Old 01-22-2019 , 04:27   Help with very simple plugin
Reply With Quote #1

I'm still very new to this whole thing. I'm getting lots of errors when I try to compile and I don't know why.

"#pragma semicolon 1

#include <sourcemod>
#include <sdktools>

public Plugin myinfo =
{
name = "Restart",
author = "94mudkips",
description = "",
version = "0.1b",
url = ""
}

public void OnPluginStart()
{
RegConsoleCmd("sm_restart", Command_Restart);
}

public Action Command_Restart()
{
ReplyToCommand("[SM] You have now restarted!");
ForcePlayerSuicide();
return Plugin_Handled;
}"

I'm trying to make a !restart plugin for surf.

I get these errors:
restart.sp(17) : error 100: function prototypes do not match
restart.sp(22) : error 035: argument type mismatch (argument 1)
restart.sp(23) : warning 217: loose indentation
restart.sp(23) : error 092: number of arguments does not match definition
restart.sp(24) : warning 217: loose indentation


Thanks in advance for any help!
94mudkips is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-22-2019 , 07:03   Re: Help with very simple plugin
Reply With Quote #2

If you're new, you should probably begin in the SourceMod section, not the AMX Mod X one.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



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 18:12.


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