Raised This Month: $ Target: $400
 0% 

won't display variable after text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
delta44
Member
Join Date: Jun 2006
Old 06-16-2007 , 20:55   won't display variable after text
Reply With Quote #1

ok here is my problem i am making a simple plugin but i can't seem to make it write something properly

Code:
new variable[6]
read_argv(1,variable,6)
server_cmd("command_name %s",variable)
Code:
	client_print(0,print_chat,"something has been set to:",variable)
	console_print(id,"something has been set to:",variable)
when i do the plugin all it prints is
Code:
something has been set to:
and i want it to print something has been set to: variable
nothing else.

so can you help me with this issue please,

and thanks.
__________________
delta44 is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-16-2007 , 21:53   Re: won't display variable after text
Reply With Quote #2

Code:
client_print(0, print_chat, "something has been set to: %s", variable) console_print(id, "something has been set to: %s", variable)
Lee is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 06-17-2007 , 06:17   Re: won't display variable after text
Reply With Quote #3

Also make sure you read 5 chars from cmd line
_Master_ is offline
delta44
Member
Join Date: Jun 2006
Old 06-17-2007 , 09:23   Re: won't display variable after text
Reply With Quote #4

Thanks alot
__________________
delta44 is offline
Reply



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 10:36.


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