02.08.2018, 00:57
Код:
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; }
Код:
#if !defined isnull #define isnull(%1) \ ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1])))) #endif
send the " [Near Messages]%s: /1 "
How to fix it!?