AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Compile Error Coming (https://forums.alliedmods.net/showthread.php?t=253851)

priyojit 12-29-2014 12:06

[HELP] Compile Error Coming
 
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")



Kazalu 12-29-2014 12:17

Re: [HELP] Compile Error Coming
 
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

zmd94 12-29-2014 12:34

Re: [HELP] Compile Error Coming
 
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")
}


priyojit 12-29-2014 12:54

Re: [HELP] Compile Error Coming
 
Quote:

Originally Posted by Kazalu (Post 2241514)
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

popeye10 12-29-2014 13:06

Re: [HELP] Compile Error Coming
 
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")



YamiKaitou 12-29-2014 13:08

Re: [HELP] Compile Error Coming
 
@popeye10, Round_Start is not called for each client, so id will always be 0

fysiks 12-29-2014 13:34

Re: [HELP] Compile Error Coming
 
Quote:

Originally Posted by priyojit (Post 2241536)
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.

priyojit 12-30-2014 02:37

Re: [HELP] Compile Error Coming
 
Quote:

Originally Posted by fysiks (Post 2241560)
He told you to change 1 character. Don't be lazy.

Thanks Bro :)

tousif 12-30-2014 09:55

Re: [HELP] Compile Error Coming
 
priyojit plzz remove sv banner from ur signature its against Rules :D


All times are GMT -4. The time now is 15:18.

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