18.10.2012, 21:02
Ainda deu um erro esse
Linha do erro
comando do erro
Код:
(14844) : warning 219: local variable "tmp" shadows a variable at a preceding level
Код:
new tmp[128];
Код:
if (!strcmp("/lasercor", cmd, true)) {
new tmp[128];
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
SendClientMessage(playerid, 0x00E800FF, "Usage: /lasercor [cor]");
return 1;
}
if (!strcmp(tmp, "vermelho", true)) SetPVarInt(playerid, "color", 18643);
else if (!strcmp(tmp, "azul", true)) SetPVarInt(playerid, "color", 19080);
else if (!strcmp(tmp, "rosa", true)) SetPVarInt(playerid, "color", 19081);
else if (!strcmp(tmp, "laranja", true)) SetPVarInt(playerid, "color", 19082);
else if (!strcmp(tmp, "verde", true)) SetPVarInt(playerid, "color", 19083);
else if (!strcmp(tmp, "amarelo", true)) SetPVarInt(playerid, "color", 19084);
else SendClientMessage(playerid, 0x00E800FF, "Cor nгo disponivel!");
return 1;
}

