Raised This Month: $ Target: $400
 0% 

Compiling Problem (Language Edit)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 12-24-2015 , 17:23   Compiling Problem (Language Edit)
Reply With Quote #1

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??
Alber9091 is offline
 


Thread Tools
Display Modes

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:51.


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