11.06.2012, 01:09
Olб gente, to com um problema na public OnDialogResponse... tipo nesse MUDAR COR
quando eu seleciono uma opзгo muda e a HORA nгo a cor do nick... queria saber se tudo ta fechado certinho ou nгo, VLW !
quando eu seleciono uma opзгo muda e a HORA nгo a cor do nick... queria saber se tudo ta fechado certinho ou nгo, VLW !
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == MUDARCOR)
{
if(response)
{
if(listitem == 0)
{
SetPlayerColor(playerid, Vermelho);
return 1;
}
if(listitem == 1)
{
SetPlayerColor(playerid, Verde);
return 1;
}
if(listitem == 2)
{
SetPlayerColor(playerid, Amarelo);
return 1;
}
if(listitem == 3)
{
SetPlayerColor(playerid, Azul);
return 1;
}
if(listitem == 4)
{
SetPlayerColor(playerid, Laranja);
return 1;
}
if(listitem == 5)
{
SetPlayerColor(playerid, Roxo);
return 1;
}
if(listitem == 6)
{
SetPlayerColor(playerid, Azul_Marinho);
return 1;
}
if(listitem == 7)
{
SetPlayerColor(playerid, Rosa);
return 1;
}
if(listitem == 8)
{
SetPlayerColor(playerid, Cinza);
return 1;
}
if(listitem == 9)
{
SetPlayerColor(playerid, Marron);
return 1;
}
if(listitem == 10)
{
SetPlayerColor(playerid, Branco);
return 1;
}
if(listitem == 11)
{
SetPlayerColor(playerid, Azul_Claro);
return 1;
}
if(listitem == 12)
{
SetPlayerColor(playerid, Verde_Escuro);
return 1;
}
}
//------------------------------------------------------------------------------
if(dialogid == MUDARPLACA)
{
new string[128];
if(strlen(inputtext) < 1 || strlen(inputtext) > 8) return SendClientMessage(playerid, 0xAFAFAFAA, "Texto Invбlido.");
else
{
new ID = GetPlayerVehicleID(playerid);
new Float:X1,Float:Y1,Float:Z1;
format(string, sizeof(string), "Vocк mudou a placa do seu veнculo para '%s'.", inputtext);
SendClientMessage(playerid, 0x33CCFFAA, string);
GetVehiclePos(ID, X1, Y1, Z1);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetTimer("MudarPlacaTimer", 300, true);
}
}
}
}
return 1;
}


: error 079: inconsistent return types (array & non-array)