sorun ne smadaki ? - megasxselar - 11-09-12
PHP Code: /* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc> #include <hamsandwich>
#define PLUGIN "Jail Break: Basic Info" #define VERSION "1.0" #define AUTHOR "Sn!ff3r"
#define USERTASK 921 #define UPDATEDELAY 1.0
new static reasons[][] = { "[RevolutioN] Testereyle oraya buraya saldirdi.", "[RevolutioN] Cinayet isledi", "[RevolutioN] Polise karsi geldi", "[RevolutioN] RevolutioN Gaminge kufur etti.", "[RevolutioN] Birine Bicak cekti", "[RevolutioN] Saldirida bulundu", "[RevolutioN] Korsan CD Satti", "[RevolutioN] Adam yaraLadi" "[RevolutioN] Polise Moruk dedi amk." "[RevolutioN] Sokagin ortasinda sekilsiniz ya hiaminaa diye bagirdi.." "[RevolutioN] Sucsuz yere icerde yatiyor mal" "[RevolutioN] At sikti." }
new userreason[33] new rounds, hudhandler
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/) register_logevent("round_end", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "client_spawn", 1) hudhandler = CreateHudSyncObj() }
public round_end() { rounds ++ }
public restart_roundsnum() { rounds = 0 }
public client_disconnect(id) { userreason[id] = -1 if(task_exists(id + USERTASK)) { remove_task(id + USERTASK) } }
public client_spawn(id) { if(task_exists(id + USERTASK)) { remove_task(id + USERTASK) } if(get_user_team(id) == 1) { userreason[id] = random_num(0, sizeof reasons - 1) set_task(UPDATEDELAY, "client_jailinfo", id + USERTASK, _, _, "b") } }
public client_jailinfo(TASKID) { static id id = TASKID - USERTASK set_hudmessage(0, 255, 0, 0.8, 0.1, 0, 6.0, 12.0) ShowSyncHudMsg(id, hudhandler, "Gun %d | Hapis Sebebi %s.", rounds, reasons[userreason[id]]) }
compile ederken ;
/tmp/text4CQ3fk.sma(23) : error 001: expected token: "}", but found "-string-"
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text4CQ3fk.amx (compile failed).
sorunu geliyor . sorunsuz sma istiyorum rica edicem
Cevap: sorun ne smadaki ? - к4dανяα - 11-09-12
PHP Code: /* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc> #include <hamsandwich>
#define PLUGIN "Jail Break: Basic Info" #define VERSION "1.0" #define AUTHOR "Sn!ff3r"
#define USERTASK 921 #define UPDATEDELAY 1.0
new static reasons[][] = { "[RevolutioN] Testereyle oraya buraya saldirdi.", "[RevolutioN] Cinayet isledi", "[RevolutioN] Polise karsi geldi", "[RevolutioN] RevolutioN Gaminge kufur etti.", "[RevolutioN] Birine Bicak cekti", "[RevolutioN] Saldirida bulundu", "[RevolutioN] Korsan CD Satti", "[RevolutioN] Adam yaraLadi", "[RevolutioN] Polise Moruk dedi amk.", "[RevolutioN] Sokagin ortasinda sekilsiniz ya hiaminaa diye bagirdi..", "[RevolutioN] Sucsuz yere icerde yatiyor mal", "[RevolutioN] At sikti." }
new userreason[33] new rounds, hudhandler
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/) register_logevent("round_end", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "client_spawn", 1) hudhandler = CreateHudSyncObj() }
public round_end() { rounds ++ }
public restart_roundsnum() { rounds = 0 }
public client_disconnect(id) { userreason[id] = -1 if(task_exists(id + USERTASK)) { remove_task(id + USERTASK) } }
public client_spawn(id) { if(task_exists(id + USERTASK)) { remove_task(id + USERTASK) } if(get_user_team(id) == 1) { userreason[id] = random_num(0, sizeof reasons - 1) set_task(UPDATEDELAY, "client_jailinfo", id + USERTASK, _, _, "b") } }
public client_jailinfo(TASKID) { static id id = TASKID - USERTASK set_hudmessage(0, 255, 0, 0.8, 0.1, 0, 6.0, 12.0) ShowSyncHudMsg(id, hudhandler, "Gun %d | Hapis Sebebi %s.", rounds, reasons[userreason[id]]) }
Cevap: sorun ne smadaki ? - megasxselar - 11-09-12
eyv
|