01.02.2018, 20:43
error:
Код:
[debug] Run time error 20: "Invalid index parameter (bad entry point)" [join] jasjema has joined the server (0:127.0.0.1) Szerver: Sophie_Kennedy belepett - uID: 4 | BID: 7118 [debug] Run time error 20: "Invalid index parameter (bad entry point)" [debug] Run time error 20: "Invalid index parameter (bad entry point)" [debug] Run time error 20: "Invalid index parameter (bad entry point)" [debug] Run time error 20: "Invalid index parameter (bad entry point)" [debug] Run time error 20: "Invalid index parameter (bad entry point)" [debug] Run time error 20: "Invalid index parameter (bad entry point)"
Код:
new ferfiskinek = mS_INVALID_LISTID; new noiskinek = mS_INVALID_LISTID;
Код:
noiskinek = LoadModelSelectionMenu("noiskinek.txt"); ferfiskinek = LoadModelSelectionMenu("ferfiskinek.txt");
Код:
public OnPlayerModelSelection(playerid, response, listid, modelid) { if(listid == ferfiskinek) { if(response) { if(PenzEgyenleg(playerid) < 100) return SCM(playerid, COL_LRED, "Egy ruha бra 100$, neked nincs ennyi kйszpйnzed!"); SendClientMessage(playerid, 0xFF0000FF, "Ruhбzat megvбltoztatva!"); SetSkin(playerid, modelid); PlayerInfo[playerid][ppenz] -= 100; } else SendClientMessage(playerid, 0xFF0000FF, "Mйgsem vбltoztattad meg a ruhбdat!"); return 1; } if(listid == noiskinek) { if(response) { if(PenzEgyenleg(playerid) < 100) return SCM(playerid, COL_LRED, "Egy ruha бra 100$, neked nincs ennyi kйszpйnzed!"); SFM(playerid, COL_VZOLD, "Vettйl egy ъj ruhбt! (( SkinID: %d ))", modelid); SetSkin(playerid, modelid); PlayerInfo[playerid][ppenz] -= 100; } return SCM(playerid, COL_FOSZIN, "Tovбbbi szйp napot!"); return 1; } return true; }
Код:
case DIALOG_RUHABOLT: { if(!response) return SCM(playerid, COL_MKEK, "Kцszцnjьk, hogy nбlunk vбsбrolt! Viszlбt kйsőbb!"); switch(listitem) { case 0: { if(PlayerInfo[playerid][pnem] == 1) { ShowModelSelectionMenu(playerid, ferfiskinek, "Ferfi skinek"); return 1; } if(PlayerInfo[playerid][pnem] == 0) { ShowModelSelectionMenu(playerid, noiskinek, "Noi skinek"); return 1; } }