21.10.2018, 21:55
(
Последний раз редактировалось RogueDrifter; 21.10.2018 в 23:08.
)
That function isn't going to return 0, what you need to do is return whatever it is you wanna do then separate it with a ,0; right after. Like so:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Player[playerid][IsLoggedIn] == false) return ShowPlayerFooter(playerid, "You need to be ~r~logged ~w~to use the chat.", 5000), 0;
if(Player[playerid][IsLoggingIn] == true) return ShowPlayerFooter(playerid, "You need to be ~r~logged ~w~to use the chat.", 5000), 0;
if(IsDead[playerid] == 1) return ShowPlayerFooter(playerid, "You are too tired to talk...", 5000), 0;
if(GetOnlySpacesText(text)) return 0;
SendNearbyMessage(playerid, 20.0, -1, "{%06x}%s: "WHITE"%s", GetPlayerColor(playerid) >>> 8, ReturnName(playerid, 0), text);
return 0;
}