|
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
|

03-13-2009
, 12:16
Re: Colored TXT
|
#10
|
ok i changed my idea & maked this to :
PHP Code:
#include <amxmodx> #include <colorchat>
#define PLUGIN "Commands Helper" #define VERSION "1.0" #define AUTHOR "One" new ad_time
public plugin_init() { ad_time = register_cvar("ads_time","120"); set_task(float(get_pcvar_num(ad_time)), "ads"); } public ads() { switch(random_num(1,24)) { case 1: //Red { ColorChat(0, RED, "Schreib ts2 um in unser TS-Server umgeleitet zu werden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 2: //Green { ColorChat(0, GREEN, "Schreib ts2 um in unser TS-Server umgeleitet zu werden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 3: //Blue { ColorChat(0, BLUE, "Schreib ts2 um in unser TS-Server umgeleitet zu werden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 4: //Grey { ColorChat(0, GREY, "Schreib ts2 um in unser TS-Server umgeleitet zu werden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 5: //Red { ColorChat(0, RED, "Schreibe /cam um deine sicht zu wechseln."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 6: //Green { ColorChat(0, GREEN, "Schreibe /cam um deine sicht zu wechseln."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 7: //Blue { ColorChat(0, BLUE, "Schreibe /cam um deine sicht zu wechseln."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 8: //Grey { ColorChat(0, GREY, "Schreibe /cam um deine sicht zu wechseln."); set_task(float(get_pcvar_num(ad_time)), "ads"); case 9: //Red { ColorChat(0, RED, "Schreibe blackjack um Blackjack zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 10: //Green { ColorChat(0, GREEN, "Schreibe blackjack um Blackjack zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 11: //Blue { ColorChat(0, BLUE, "Schreibe blackjack um Blackjack zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 12: //Grey { ColorChat(0, GREY, "Schreibe blackjack um Blackjack zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); case 13: //Red { ColorChat(0, RED, "Schreibe poker um Poker zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 14: //Green { ColorChat(0, GREEN, "Schreibe poker um Poker zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 15: //Blue { ColorChat(0, BLUE, "Schreibe poker um Poker zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 16: //Grey { ColorChat(0, GREY, "Schreibe poker um Poker zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); case 17: //Red { ColorChat(0, RED, "Schreibe /hats um dich zu verkleiden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 18: //Green { ColorChat(0, GREEN, "Schreibe /hats um dich zu verkleiden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 19: //Blue { ColorChat(0, BLUE, "Schreibe /hats um dich zu verkleiden."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 20: //Grey { ColorChat(0, GREY, "Schreibe /hats um dich zu verkleiden."); set_task(float(get_pcvar_num(ad_time)), "ads"); case 21: //Red { ColorChat(0, RED, "Schreibe /quiz um an unserem quiz teilzunehmen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 22: //Green { ColorChat(0, GREEN, "Schreibe /quiz um an unserem quiz teilzunehmen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 23: //Blue { ColorChat(0, BLUE, "Schreibe /quiz um an unserem quiz teilzunehmen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 24: //Grey { ColorChat(0, GREY, "Schreibe /quiz um an unserem quiz teilzunehmen."); set_task(float(get_pcvar_num(ad_time)), "ads"); case 21: //Red { ColorChat(0, RED, "Schreibe tetris um Tetris zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 22: //Green { ColorChat(0, GREEN, "Schreibe tetris um Tetris zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 23: //Blue { ColorChat(0, BLUE, "Schreibe tetris um Tetris zu spielen."); set_task(float(get_pcvar_num(ad_time)), "ads"); } case 24: //Grey { ColorChat(0, GREY, "Schreibe tetris um Tetris zu spielen.."); set_task(float(get_pcvar_num(ad_time)), "ads"); } }
but error on line 57 :
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Loose indentation on line 57 Error: Invalid statement; not in switch on line 57 Warning: Expression has no effect on line 57 Error: Expected token: ";", but found ":" on line 57 Error: Invalid expression, assumed zero on line 57 Error: Too many error messages on one line on line 57
Compilation aborted. 4 Errors. Could not locate output file C:\Dokumente und Einstellungen\One\Desktop\aaaaa\command_helper.amx (compile failed).
line 57 : case 9: //Red
__________________
|
|