Help with very simple plugin
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! :) |
Re: Help with very simple plugin
If you're new, you should probably begin in the SourceMod section, not the AMX Mod X one.
|
| All times are GMT -4. The time now is 07:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.