03.04.2014, 01:43
warning 217: loose indentation
error 029: invalid expression, assumed zero
warning 217: loose indentation
warning 209: function "cmd_b" should return a value
error 010: invalid function or declaration
error 029: invalid expression, assumed zero
warning 217: loose indentation
warning 209: function "cmd_b" should return a value
error 010: invalid function or declaration
Код:
command(b, playerid, params[])
{
new Message[128], string[128];
if(sscanf(params, "z", Message))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /b [message]");
}
else
{
if(strlen(Message) < 1 || !IsPlayerConnectedEx(playerid))
{
return 1;
}
else
{
if(Player[playerid][PrisonID] == 1)
{
SendClientMessage(playerid, WHITE, "You may not use this channel right now.");
}
else
{
format(string, sizeof(string), "(( %s says: %s ))", GetName(playerid), Message);
OOCChatLog(string);
NearByMessage(playerid, GREY, string);
}
else Warning 217: loose indentation error 029: invalid expression, assumed zero
{ Warning 217: loose indentation
if(Player[playerid][AdminLevel] == 1)
{
format(string, sizeof(string), "(( {f6970c}%s says: %s ))", GetName(playerid), Message);
OOCChatLog(string);
NearByMessage(playerid, GREY, string);
}
}
}
}
} Warning 209: function "cmd_b" should return a value
return 1; Error 010: invalid function or declaration
}

