Raised This Month: $ Target: $400
 0% 

Game Description


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
spag
Junior Member
Join Date: Feb 2013
Old 11-24-2014 , 10:21   Re: Game Description
Reply With Quote #3

Nope, not working.. My code:

Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN	"GameDescription"
#define VERSION	"1.0"
#define AUTHOR	"-"

#define GAME_NAME	"Zombie"

new gameDesc[32];

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_forward(FM_GetGameDescription, "GameDesc");
	
	register_clcmd("say /gd", "cmd");
	
	dllfunc(DLLFunc_GetGameDescription, gameDesc);
}

public cmd(id)
{
	if (equal(gameDesc, "Zombie"))
		client_print(id, print_chat, "It's work!");
	else
		client_print(id, print_chat, "Someting wrong.. Current GameDescription is: %s", gameDesc);
}

public GameDesc() 
{ 
	forward_return(FMV_STRING, GAME_NAME);
	return FMRES_SUPERCEDE;
}
spag 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 17:29.


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