Adds Command: to string
#1

Hello,

I'm trying to do something like this:
Код:
format(str, sizeof(str), "/test %d", playerid);
OnPlayerCommandText(playerid, str);
And I gets in the string Command: /Test 0 not found...
This adds the Command auto..

I try to do like this:
Код:
printf("%s", str);
      		format(str, sizeof(str), "/test %d", playerid);
		    printf("%s", str);
		    OnPlayerCommandText(playerid, str);
End first return's hello.
the second Command: /test 0

WHat to do?
Reply


Messages In This Thread
Adds Command: to string - by Swimor - 12.10.2012, 18:18
Re: Adds Command: to string - by Camacorn - 12.10.2012, 18:21
Re: Adds Command: to string - by Swimor - 12.10.2012, 18:24
AW: Adds Command: to string - by Nero_3D - 12.10.2012, 19:22
Re: Adds Command: to string - by Swimor - 15.10.2012, 04:43
Re: Adds Command: to string - by T-Raw - 15.10.2012, 06:39

Forum Jump:


Users browsing this thread: 1 Guest(s)