Raised This Month: $ Target: $400
 0% 

[SOLVED]String help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rompom7
Senior Member
Join Date: May 2004
Old 06-06-2004 , 04:44   [SOLVED]String help
Reply With Quote #1

Hello, my first script, I just need a little help with the strings.


Here is the code
Code:
/* Live on 3 Plugin By Rompom7 */ #include <amxmodx> new PLUGIN[]="WarBot" new AUTHOR[]="rompom7" new VERSION[]="1.00" public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)      register_concmd("amx_warbot", "warstart") } public restart(time01[]) {     set_cvar_num("sv_restartround", str_to_num(time01))     return PLUGIN_CONTINUE } public warstart() {     set_task(3.0,"text",0,"Live on 3 Restarts",1)     set_task(3.0,"restart",0,"1",1)     set_task(6.0,"text",0,"Live on 2 Restarts",1)     set_task(6.0,"restart",0,"1",1)     set_task(9.0,"text",0,"Live on 1 Restart",1)     set_task(9.0,"restart",0,"3",1)     set_task(12.0,"text",0,"***LIVE LIVE LIVE***",1)     set_task(12.5,"text",0,"Good Luck and Have Fun",1)     return PLUGIN_HANDLED } public text(str01[30]) {     client_print(0, print_chat, str01)     return PLUGIN_CONTINUE }

So what happens is when i join my dedicated, and i type amx_warbot into console it restarts 3 times, but the client_print only shows the first character of each string.

How do i make it show the whole string?

I know this plugin has been made before, i am only making it so i can get a grasp of Small.

Thanks all.
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
 



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 14:52.


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