AlliedModders Donor
Join Date: Sep 2006
Location: Germany (Schwerin)
|
01-29-2014
, 03:58
Errors in the script
|
#1
|
Hello people
I made a mistake in my script line 1085
Quote:
Error: features.sp (1085) error: function heading 025 Differs from prototype
|
Here's the code:
Line 1085
Quote:
public Action:OnChatMessage(&client, &Handle:recipients, String:name[], String:message[])
|
the whole code
Quote:
// Feature Custom Chat Colors
public Action:OnChatMessage(&client, &Handle:recipients, String:name[], String:message[])
{
if (clients_isValidClient(client, false))
{
if (clients_hasFeature(client, FEATURE_COLORS))
{
new String:matchedTag[64];
new String:Copy[64];
while (MatchRegex(g_Regex, message) > 0)
{
GetRegexSubString(g_Regex, 0, matchedTag, sizeof(matchedTag));
new location = StrContains(message, matchedTag);
if (location == -1)
{
break;
}
strcopy(Copy, sizeof(Copy), matchedTag);
ReplaceStringEx(Copy, sizeof(Copy), "#", "\x07");
ReplaceStringEx(message, MAXLENGTH_MESSAGE, matchedTag, Copy);
}
while (MatchRegex(g_Regex2, message) > 0)
{
GetRegexSubString(g_Regex2, 0, matchedTag, sizeof(matchedTag));
new value;
new location = StrContains(message, matchedTag);
if (location == -1)
break;
strcopy(Copy, sizeof(Copy), matchedTag);
ReplaceString(Copy, sizeof(Copy), "{", "");
ReplaceString(Copy, sizeof(Copy), "}", "");
if (GetTrieValue(g_CTrie, Copy, value))
{
Format(Copy, sizeof(Copy), "\x07%06X", value);
}
ReplaceStringEx(message, MAXLENGTH_MESSAGE, matchedTag, Copy);
}
}
if (clients_hasFeature(client, FEATURE_NAMECOLOR))
{
Format(name, 128, "%s%s", g_Player[client][CL_NAMECOLOR], name);
}
return Plugin_Changed;
}
return Plugin_Continue;
}
|
I have all inc files.
pls help
srry my English is bad
Last edited by Laser32; 01-29-2014 at 04:01.
|
|