AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   won't display variable after text (https://forums.alliedmods.net/showthread.php?t=56600)

delta44 06-16-2007 20:55

won't display variable after text
 
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.

Lee 06-16-2007 21:53

Re: won't display variable after text
 
Code:
client_print(0, print_chat, "something has been set to: %s", variable) console_print(id, "something has been set to: %s", variable)

_Master_ 06-17-2007 06:17

Re: won't display variable after text
 
Also make sure you read 5 chars from cmd line

delta44 06-17-2007 09:23

Re: won't display variable after text
 
Thanks alot


All times are GMT -4. The time now is 10:36.

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