isnull problem
#1

Код:
CMD:n(playerid, params[])
{
	new string[172];//The string...
	if(isnull(params)) return SendClientMessage(playerid, lightblue, " /n [Text]"); //If the player only send '/admin'.
	new PlayerName[MAX_PLAYER_NAME+1]; //The string to store the name.
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); //We get the player name.
	format(string, sizeof(string), "[Near Messages]%s: %s", PlayerName, params); //The final message...
	SendNearMessage( playerid, COLOR_WHITE, string, 15.0 );
	return 1;
}
my isnull codes:
Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
i when enter the /n command not show me /n [Text] but
send the " [Near Messages]%s: /1 "
How to fix it!?
Reply


Messages In This Thread
isnull problem - by Vizi10 - 02.08.2018, 00:57
Re: isnull problem - by Rufio - 02.08.2018, 02:04
Re: isnull problem - by Akeem - 02.08.2018, 02:22
Re: isnull problem - by Dayrion - 02.08.2018, 02:24
Re: isnull problem - by Vizi10 - 02.08.2018, 08:50
Re: isnull problem - by Vizi10 - 02.08.2018, 09:45
Re: isnull problem - by Rufio - 02.08.2018, 10:01
Re: isnull problem - by Vizi10 - 02.08.2018, 10:28
Re: isnull problem - by Rufio - 02.08.2018, 11:08
Re: isnull problem - by Vizi10 - 02.08.2018, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)