Raised This Month: $ Target: $400
 0% 

help with round end plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
refused
Senior Member
Join Date: Dec 2007
Old 07-29-2008 , 21:17   help with round end plugin
Reply With Quote #1

what's wrong with this?


#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Round end"
#define VERSION "1.0"
#define AUTHOR ""


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_logevent("logevent_round_end", 2, "1=Round_End")

.
}

public logevent_round_end()
{
set_hudmessage(178, 14, 41, -1.0, -0.4, 1, 0.5, 1.7, 0.2, 0.2,5);
show_hudmessage(id, "Round ended.^nStarting next round" );
}
refused is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-29-2008 , 21:21   Re: help with round end plugin
Reply With Quote #2

Code:
show_hudmessage(id, "Round ended.^nStarting next round" );
should be
Code:
show_hudmessage(0, "Round ended.^nStarting next round" );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
refused
Senior Member
Join Date: Dec 2007
Old 07-29-2008 , 21:24   Re: help with round end plugin
Reply With Quote #3

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/phpCtSN4R.sma(14) : error 029: invalid expression, assumed zero

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpCtSN4R.amx (compile failed).

451228 successful compiles to date.
270798 failed compiles to date.
Old compiler: 101980 compiles before decommission.
This tool by: David "BAILOPAN" Anderson.
refused is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-29-2008 , 21:30   Re: help with round end plugin
Reply With Quote #4

remove the period "." from the plugin_init() brackets.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
refused
Senior Member
Join Date: Dec 2007
Old 07-29-2008 , 21:35   Re: help with round end plugin
Reply With Quote #5

OK, it works now. But it dissapears after 1sec, how can i make so the text will be there for about 3 seconds?
refused is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-29-2008 , 21:40   Re: help with round end plugin
Reply With Quote #6

Code:
set_hudmessage(178, 14, 41, -1.0, -0.4, 1, 0.5, 1.7, 0.2, 0.2,5) // Red number is seconds
__________________

Last edited by hleV; 07-29-2008 at 21:42.
hleV is offline
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 05:29.


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