space in %s
if %s = the man
its only picks up "the" client_cmd(id,"%s %s", blah1, blah2) How can I make the 2nd %2 include "the man" Thanks |
blah1[] = "whatever"
blah2[] = "the man" |
Maybe I explained that badly
blah2 already equals "the man" but when I run a command it only picks up "the" If I do client_print(id,print_notify,"%s %s", blah1, blah2) is does show "the man" but using client_cmd( is does nt... |
hmm
Thats odd, cant help ya there :| sry
|
try
client_print(id,print_notify,"%s ^"%s^"", blah1, blah2) |
Quote:
:lol: |
Maybe just try:
client_cmd(id,blah1, blah2) :?: |
Quote:
|
Great thanks
1 last thing.. read_argv(1, blah1, 49) if I use "amx_test one two" would the above return "one two" or just "one" (I want it to return "one two" - I really want to to return anything after amx_text so it could be "one two three four five etc" ) Thanks. |
Just one
Use.. read_argv(string,128) copy(params,128,string[9]) //9 = strlen(amx_test ) |
amx_point.sma(37) : error 029: invalid expression, assumed zero
amx_point.sma(38) : error 035: argument type mismatch (argument 1) I get the following error with that code... any ideas? |
read_args(blah1, 49)
That works :) |
| All times are GMT -4. The time now is 07:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.