AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Compiling Problem (Language Edit) (https://forums.alliedmods.net/showthread.php?t=276627)

Alber9091 12-24-2015 17:23

Compiling Problem (Language Edit)
 
Originally this Plugin is in Serbian (PlayedRounds) but when I edit it in english and tried to compile it with webcompiler, it sends me this error:

/tmp/textQcGB7L.sma(3) : fatal error 100: cannot read from file: "colorchat"

Original Source:

PHP Code:

new maxrundi
new rounds 0

public plugin_init() 
{
    
register_plugin("playedrounds""1.0""Borara")
    
register_clcmd("say playedrounds""runda")
    
register_event("HLTV""pocetak_runde""a""1=0""2=0")
    
register_event("TextMsg""restart_runde""a""2=#Game_will_restart_in")
}

public 
restart_runde() 
    
rounds 

        
public runda(id)
{
      
rounds++
      
maxrundi=get_cvar_num("mp_maxrounds")
      
ColorChat(0GREEN "Played-Rounds: ^3%d^1/^3%d ^1"rounds,maxrundi


Edited Source:

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

new maxrounds
new rounds 0

public plugin_init() 
{
    
register_plugin("Played Rounds""1.0""Borara")
    
register_clcmd("say playedrounds""Rounds")
    
register_clcmd("say_team playedrounds""Rounds")
    
register_clcmd("say rounds""Rounds")
    
register_clcmd("say_team rounds""Rounds")
    
register_event("HLTV""Start_Round""a""1=0""2=0")
    
register_event("TextMsg""Restart_Round""a""2=#Game_will_restart_in")
}

public 
restart_round() 
    
rounds 

        
public rounds(id)
{
      
rounds++
      
maxrounds=get_cvar_num("mp_maxrounds")
      
ColorChat(0GREEN"Played-Rounds: ^3%d^1/^3%d ^1"Rounds,Max-Rounds


Can any one help me?? to sort out what is the problem??

wickedd 12-24-2015 17:44

Re: Compiling Problem (Language Edit)
 
Compile the plugin locally, you will need colorchat.inc.

Alber9091 12-24-2015 18:36

Re: Compiling Problem (Language Edit)
 
Okie Thanks Man, I will try :D

In Between, I'm not good at compiling locally or we can say super noob in it, can u or anyone, help me little bit??

wickedd 12-24-2015 19:08

Re: Compiling Problem (Language Edit)
 
Read this

Alber9091 12-25-2015 05:31

Re: Compiling Problem (Language Edit)
 
Hy man, you did half of my job thank you so, much, thats what I was looking for :-D

Alber9091 12-25-2015 06:07

Re: Compiling Problem (Language Edit)
 
Ah, I did, tried to compile it locally (Even Included Colorchat.inc) but still plugin is showing 1 error ..!!
can anyone check out the script??

addons_zz 12-25-2015 06:32

Re: Compiling Problem (Language Edit)
 
Quote:

Originally Posted by Alber9091 (Post 2376096)
Ah, I did, tried to compile it locally (Even Included Colorchat.inc) but still plugin is showing 1 error ..!!
can anyone check out the script??

Please, keep in mind I we cannot read minds. What is your error?
Copy and paste the console output or take a print screen as here.

Alber9091 12-25-2015 06:53

Re: Compiling Problem (Language Edit)
 
1 Attachment(s)
Sorry I was unable to put SS here so i attached it in attachment, its of 18 Kb please have a look on it ..!!

If I tried to attach with Img it shows this ..!!

[IMG]http://************/image/7wxndyzut/[/IMG]

That's the actually issue I'm facing ..!!

addons_zz 12-25-2015 07:56

Re: Compiling Problem (Language Edit)
 
Quote:

Originally Posted by Alber9091 (Post 2376103)
Sorry I was unable to put SS here so i attached it in attachment, its of 18 Kb please have a look on it ..!!

If I tried to attach with Img it shows this ..!!

[IMG]http://************/image/7wxndyzut/[/IMG]

That's the actually issue I'm facing ..!!

This is a windows *****, you have to put your AMXX mod compiler at another place than Program files or configure the files write permissions to your user/administrador at the AMXX folder.

Alber9091 12-25-2015 08:49

Re: Compiling Problem (Language Edit)
 
Thank You man Plugin compiled :D


All times are GMT -4. The time now is 17:51.

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