Raised This Month: $ Target: $400
 0% 

[HELP] Compile Error Coming


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-29-2014 , 12:06   [HELP] Compile Error Coming
Reply With Quote #1

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Adminship details","1.0","GUN SHOOTER"
     
    
register_logevent("new_round"2"1=Round_Start"
}

public 
new_round()
{
    
set_hudmessage(random(256), random(256), random(256), 0.200.6026.012.0)
    
show_hudmessage(id"Normal Adminship 100rs Per Month & Head-Adminship 150rs Per Month^nFor Adminship^nContact +917687920729 & +919163818354 & +919804848950")

__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
Kazalu
Senior Member
Join Date: Dec 2013
Location: Romania
Old 12-29-2014 , 12:17   Re: [HELP] Compile Error Coming
Reply With Quote #2

public new_round() -> you have to make a loop through the players id's and show them the message.

And you also have to end the quote and paranthesys at show_hudmessage

Last edited by Kazalu; 12-29-2014 at 12:18.
Kazalu is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-29-2014 , 12:34   Re: [HELP] Compile Error Coming
Reply With Quote #3

Just change this:
Code:
public new_round()
{
    set_hudmessage(random(256), random(256), random(256), 0.20, 0.60, 2, 6.0, 12.0)
    show_hudmessage(id, "Normal Adminship 100rs Per Month & Head-Adminship 150rs Per Month^nFor Adminship^nContact +917687920729 & +919163818354 & +919804848950")
}
-->
Code:
public new_round()
{
    set_hudmessage(random(256), random(256), random(256), 0.20, 0.60, 2, 6.0, 12.0)
    show_hudmessage(0, "Normal Adminship 100rs Per Month & Head-Adminship 150rs Per Month^nFor Adminship^nContact +917687920729 & +919163818354 & +919804848950")
}

Last edited by zmd94; 12-29-2014 at 12:35.
zmd94 is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-29-2014 , 12:54   Re: [HELP] Compile Error Coming
Reply With Quote #4

Quote:
Originally Posted by Kazalu View Post
public new_round() -> you have to make a loop through the players id's and show them the message.

And you also have to end the quote and paranthesys at show_hudmessage
can u edit the plugin and post it then it will be more helpful
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 12-29-2014 , 13:06   Re: [HELP] Compile Error Coming
Reply With Quote #5

PHP Code:
#include <amxmodx> 

public plugin_init() 

    
register_plugin("Adminship details","1.0","GUN SHOOTER")  
      
    
register_logevent("new_round"2"1=Round_Start")  


public 
new_round()
{
    
set_hudmessage(random(256), random(256), random(256), 0.200.6026.012.0)
    
show_hudmessage(0"Normal Adminship 100rs Per Month & Head-Adminship 150rs Per Month^nFor Adminship^nContact +917687920729 & +919163818354 & +919804848950")

__________________

Last edited by popeye10; 12-29-2014 at 13:09. Reason: my bad
popeye10 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-29-2014 , 13:08   Re: [HELP] Compile Error Coming
Reply With Quote #6

@popeye10, Round_Start is not called for each client, so id will always be 0
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-29-2014 , 13:34   Re: [HELP] Compile Error Coming
Reply With Quote #7

Quote:
Originally Posted by priyojit View Post
can u edit the plugin and post it then it will be more helpful
He told you to change 1 character. Don't be lazy.
__________________
fysiks is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-30-2014 , 02:37   Re: [HELP] Compile Error Coming
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
He told you to change 1 character. Don't be lazy.
Thanks Bro
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-30-2014 , 09:55   Re: [HELP] Compile Error Coming
Reply With Quote #9

priyojit plzz remove sv banner from ur signature its against Rules
tousif 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 14:07.


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