30.10.2016, 12:08
Hello
Code :
Error :
How the hell i can fix this :/
Code :
PHP код:
public OnPlayerText(playerid, text[])
{
if(P_Data[playerid][pMute] == 1)
{
SCM(playerid, COLOR_RED, "You are muted, noone can hear you!");
return 0;
}
if(!strcmp(xChars, text))
{
new
string[128],
xName[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, xName, sizeof(xName));
format(string, sizeof(string), "« \%s\" has won the reaction test. »", xName);
SendClientMessageToAll(GREEN, string);
format(string, sizeof(string), "« You have earned $%d »", xCash, xScore);
SendClientMessage(playerid, GREEN, string);
GivePlayerMoney(playerid, xCash);
xReactionTimer = SetTimer("xReactionTest", TIME, 1);
xTestBusy = false;
return 0;
}
if(text[0] == '#' && Info[playerid][indm] == 1)
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), ""REDx"[DM CHAT] %s: "WHITEx"%s", name, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(Info[i][indm] == 0 )continue;
SendClientMessage(i, -1, str);
}
return 0;
}
if(IsPlayerAdmin(playerid))
{
new pname[128];
GetPlayerName(playerid,pname,sizeof(pname));
new stf[128];
new stringig[128];
format(stf, sizeof(stf), "%s [%d] (Administrator): "WHITEx"%s", pname, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), stf);
format(stringig,sizeof(stringig),"02[%d] 07%s(Administrator): %s",playerid, pname,text);
IRC_Say(groupID, IRC_ECHO, stringig);
return 0;
}
else
{
new pname[128];
GetPlayerName(playerid,pname,sizeof(pname));
new stf[128];
new stringig[128];
format(stf, sizeof(stf), "%s [%d]: "WHITEx"%s", pname, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), stf);
format(stringig,sizeof(stringig),"02[%d] 07%s: %s",playerid, pname,text);
IRC_Say(groupID, IRC_ECHO, stringig);
return 0;
}
return 1; <---- Line 79
}
PHP код:
D:\pawno-master\include\SAPData/Chat/ChatManager.pwn(79) : warning 225: unreachable code