Jump to content
GIGN Forum

Monitors


Recommended Posts

ja tik tiesham nebljaujiet, grutakam tiesham tiku pari, kkur te foruma uzraku atachmentu monitor.rar, bet atkartotas mekleshanas sekojosho postu neatradu - kas ir ljoti zhel

monitors satur php un sma failus, izveidoju datubazi paris teiblus, visa web puse aizgaja, sma regigjeju, bet ta ari neiebraucu ka serveris suuta infu uz webu

any ideas ? myb man iepostet ari raru ?

Link to comment
Share on other sites

ka jau redzat, iznjemu to editi - veiksmigi atradu bildites, bet man jorpojam interese kapec man neiet monitors taka tam butu jaiet ?

zinat ieteikt citu ? ( interese tikai, TIKAI tadi monitori kur ir speletaji daliti komandas ar fragiem, parejas opcijas mazak zvarigas...)

Link to comment
Share on other sites

ja izveidoju datubazi, un vairakus teiblus, savadiju ieksa userus, pass datubazi un hostu.. serverii raada

 [monitor]: near "truncate": syntax error:1

ticu ka del ta ari plugins nestrada, un tas ir running statusaa..

Edited by ANAL-GINS
Link to comment
Share on other sites

problema varetu but shijas 2as koda vietas ?

public plugin_init() {
    
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_event("TextMsg","join_spec","b","2Spec_Mode")
    register_event("TeamScore", "team_score", "a")
    register_event("HLTV", "new_round", "a")
    register_event("TextMsg", "event_game_will_restart", "a", "2=#Game_will_restart_in")
    register_event("DeathMsg", "event_deathmsg", "a") 
    
    register_logevent("bomb_events", 3, "1=triggered", "2=Spawned_With_The_Bomb", "2=Dropped_The_Bomb", "2=Got_The_Bomb", "2=Planted_The_Bomb")
    
    register_cvar("monitor_host","localhost")
    register_cvar("monitor_db","monitor")
    register_cvar("monitor_user","user")
    register_cvar("monitor_pass","pass")
    register_cvar("monitor_update","60.0")
    
    set_task(0.5, "sql_init")
    
    new update[64]
    new updatetime=get_cvar_string("monitor_update",update,64)
    set_task(float(updatetime), "server_info", _, _, _, "b")
}

un

public sql_init() {
    
    new host[64],db[64],user[64],pass[64]
    get_cvar_string("localhost",host,64)
    get_cvar_string("monitor",db,64)
    get_cvar_string("user",user,64)
    get_cvar_string("pass",pass,64)
    
    mysql = dbi_connect(host, user, pass, db)
    
    if (mysql < SQL_OK) {
        new err[255]
        new errNum = dbi_error(mysql, err, 254)
        server_print("[MONITOR]: %s|%d", err, errNum)
        return 1
        } else {
        return 0
    }
    return PLUGIN_CONTINUE
}

nu es domaju, ka varbut abos nevaig to user un pass rakstit ?

ediite mainot "localhost" uz "ip addr" nekas nemainas, ka ari ja infu dzesh no viena ara un maina vietam etc.. tas errrors joprojam metas ..

Edited by ANAL-GINS
Link to comment
Share on other sites

Šis ir tas monitors ko uztaisiju pirms kāda mēneša~ un varu pateikt ka viņš vispar nestradā takā vajag un nav jēgas tur ilgi mocīties ja no pawn neko nesaproti, vēl es tā skatos kāds idiots ir samainījis kodā dažas rindiņas :lohs: Ja gribi tādu monitoru kā gign atsūti pm labāk, varbūt iedošu.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...