View Single Post
Hay
Junior Member
Join Date: Jun 2018
Old 06-08-2018 , 15:06   Re: Simple task dose not work. argument type mismatch(argument 1)
Reply With Quote #7

Quote:
Originally Posted by MasterMind420 View Post
Change "%N","%i" to just "%N %i"...anything printed goes within a single parenthesis.

PrintToChatAll("%d %d %s", Client, Money, String); Like pride95's example
Thanks again and sorry for bothering, I did it and it still made the error (number of arguments does not match definition) in the name line -

Quote:
public Action:Command_health(client, args)
{
int health = GetClientHealth(client);
int name = GetClientName(client);
PrintToChatAll("%i %N ", health, name)
}
Hay is offline