Raised This Month: $ Target: $400
 0% 

Help with very simple plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 07:34.


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