Posts: 453
	Threads: 45
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
	
		Im trying to make a "%s Is not a valid server command, Type bla bla bla bla", but how can I get the argument %s?
Example, if someone tipes "/aasda", a message will say "/aasda Is not a valid server command, Type bla bla bla bla".
Thanks
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 6,340
	Threads: 58
	Joined: May 2009
	
Reputation: 
0
	 
 
	
	
		Use cmdtext (or param or whatever you use for your commands)?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 196
	Threads: 0
	Joined: Nov 2008
	
Reputation: 
0
	 
 
	
	
		At the very end of "OnPlayerCommandText" you simply format a string with your message and let it send to the client.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 196
	Threads: 0
	Joined: Nov 2008
	
Reputation: 
0
	 
 
	
	
		It s "public OnPlayerCommandText(playerid, cmdtext[])"
cmdtext is the array you look for, not params.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,938
	Threads: 16
	Joined: Feb 2007
	
Reputation: 
0
	 
 
	
	
		though: if you put the whole command with the parameters, you will see the parameters too, so you would need to cut it off if you dont want that. Just a suggestion.