20.08.2015, 20:24
I updated to 0.3.7 ten days ago and when I tried to use my script (it working on 0.3x) mSelection shows up but I can't select anything. I tried to redownload and recompile again but not working....
if(strcmp(cmdtext, "/clothes", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pRank] == 0 && PlayerInfo[playerid][pMember] == 0) { if(IsAtClothShop(playerid)) { ShowModelSelectionMenu(playerid, skinlist, "Select Skin"); } else { SendClientMessage(playerid, COLOR_GREY, "{CC0000}[BOT]: {FFFFFF}Nu esti la un magazin clothes"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "{CC0000}[BOT]: {FFFFFF}Trebuie sa fii civil pentru a iti schimba skin!"); return 1; } } return 1; }
public OnPlayerModelSelection(playerid, response, listid, modelid) { if(listid == skinlist) { if(response) { SendClientMessage(playerid, 0xFF0000FF, "Skin Changed"); PlayerInfo[playerid][pModel] = modelid; PlayerInfo[playerid][pChar] = modelid; SetPlayerSkin(playerid, modelid); } else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection"); return 1; } return 1; }
new skinlist = mS_INVALID_LISTID;