Created
December 1, 2011 04:36
-
-
Save theY4Kman/1413668 to your computer and use it in GitHub Desktop.
smrepo.sp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SourcePawn Compiler 1.4.0 | |
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(39) : error 010: invalid function or declaration | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(39 -- 44) : error 008: must be a constant expression; assumed zero | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(45) : error 010: invalid function or declaration | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(45) : error 008: must be a constant expression; assumed zero | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(46) : error 010: invalid function or declaration | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(46) : error 008: must be a constant expression; assumed zero | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(48) : error 017: undefined symbol "___root_menu___menu___command" | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(52) : warning 213: tag mismatch | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(52) : error 092: number of arguments does not match definition | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(53) : warning 213: tag mismatch | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(53) : error 092: number of arguments does not match definition | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(54) : warning 213: tag mismatch | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(54) : error 092: number of arguments does not match definition | |
/Users/they4kman/srcds/css/cstrike/addons/sourcemod/scripting/smrepo/smrepo.sp(60) : warning 203: symbol is never used: "___menu_command___test___command_run" | |
10 Errors. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma semicolon 1 | |
#include <sourcemod> | |
#include <rootmenu> | |
public Plugin:myinfo = | |
{ | |
name = "SMRepo", | |
author = "theY4Kman", | |
description = "Yak's SMRepo client -- SourceMod Plug-in Repository tool", | |
version = "0.0.0.1-unreleased", | |
url = "http://smrepo.net" | |
}; | |
Action:___menu_command___test___description(const String:cmd[], String:description[], maxlength) | |
{ | |
if (strcmp(cmd, "test") == 0) { | |
strcopy(description, maxlength, "Let's test this shit!"); | |
return Plugin_Stop; | |
} | |
return Plugin_Continue; | |
} | |
Action:___menu_command___test___helptext(const String:cmd[], String:description[], maxlength) | |
{ | |
if (strcmp(cmd, "test") == 0) { | |
strcopy(description, maxlength, "What can I say, man? This is a\nTest\nandSHIT!"); | |
return Plugin_Stop; | |
} | |
return Plugin_Continue; | |
} | |
Action:___menu_command___test___command(client, const String:menu[], const String:cmd[], const String:args[]) | |
{ | |
if (strcmp(cmd, "test") == 0) { | |
___menu_command___test___command_run(client, menu, cmd, args); | |
return Plugin_Stop; | |
} | |
return Plugin_Continue; | |
} | |
___menu_command___test___command_run(client, const String:menu[], const String:cmd[], const String:args[]) | |
{ | |
PrintToServer("Test!" ); | |
} | |
new Handle:___root_menu___menu___forward_description = CreateForward(ET_Hook, Param_String, Param_String, Param_Cell); | |
new Handle:___root_menu___menu___forward_helptext = CreateForward(ET_Hook, Param_String, Param_String, Param_Cell); | |
new Handle:___root_menu___menu___forward_command = CreateForward(ET_Hook, Param_Cell, Param_String, Param_String, Param_String); | |
___root_menu___menu___initialize() { | |
RegServerCmd("menu", ___root_menu___menu___command, "This is a description for this here menu"); | |
new Handle:forward_description = ___root_menu___menu___forward_description; | |
new Handle:forward_helptext = ___root_menu___menu___forward_helptext; | |
new Handle:forward_command = ___root_menu___menu___forward_command; | |
AddToForward(forward_description, ___menu_command___test___description); | |
AddToForward(forward_helptext, ___menu_command___test___helptext); | |
AddToForward(forward_command, ___menu_command___test___command); | |
} | |
public OnPluginStart() | |
{ | |
___root_menu___menu___initialize(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment