24.10.2014, 05:25
(
Last edited by Spreadhaz; 26/10/2014 at 09:46 PM.
Reason: problem solved
)
When i click any item on the list nothing happens, also it doesnt hidde when i press ESC
I put this on my gamemode
I can select the items, but nothing happens when I click some of them. I can't cancel it, also if I press ESC, my cursor disappears but the catalog doesn't hide.
I put this on my gamemode
pawn Code:
ShowModelSelectionMenu(playerid, lsmdduty, "Selecciona una vestimenta");
pawn Code:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == lsmdduty)
{
if(response)
{
new string[256];
format(string, sizeof(string), "{DA7878}El paramйdico %s se ha puesto en servicio. Telйfono de servicio: 911", GetPlayerNameEx(playerid));
SendMessageToAll(string ,true);
printf("El paramйdico %s se ha puesto en servicio. Telйfono de servicio: 911", GetPlayerNameEx(playerid));
format(string, sizeof(string), "*El %s %s se coloca su vestimenta reglamental y se pone en servicio.",GetPlayerRank(playerid),GetPlayerNameIC(playerid));
ProxDetector(30.0, playerid,string,COLOR_ME,COLOR_ME,COLOR_ME,COLOR_ME,COLOR_ME);printf("%s", string);
PlayerInfo[playerid][pDuty] = modelid;
SendClientMessage(playerid, COLOR_ENABLED, "Te has puesto en servicio!");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, COLOR_ERROR, "Debes seleccionar un traje de LSMD para ponerte en servicio!");
return 1;
}
return 1;
}
I can select the items, but nothing happens when I click some of them. I can't cancel it, also if I press ESC, my cursor disappears but the catalog doesn't hide.