18.08.2012, 00:38
pawn Код:
if(strcmp(cmd, "/190", true) == 0)
{
if(IsPlayerConnected(playerid)) {
if(gPlayerLogged[playerid] == 0) {
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб logado!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) {
idx++;
}
new offset = idx;
new result[100];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result)) {
SendClientMessage(playerid, COLOR_GRAD2, "USE: /190 [Denuncia]");
return 1;
}
format(string, sizeof(string), "==> Denuncia de %s(%d): %s <==", sendername, playerid, (result));
ABroadCastPolicia(0xFFFF66FF,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Sua Denuncia Foi Enviado Aos Policias !");
}
return 1; //<<-- erro nesse linha
}