(12-12-2023, 02:27)QuryWesT Adlı Kullanıcıdan Alıntı:gene hata verdi(12-12-2023, 02:26)PRO-F?TEROL Adlı Kullanıcıdan Alıntı: AMX Mod X Compiler 1.9.0.5271
1702047427_fov.sma(33) : error 017: undefined symbol "iKey"
1702047427_fov.sma(34) : error 017: undefined symbol "iKey"
1702047427_fov.sma(34) : error 076: syntax error in the expression, or invalid function call
1702047427_fov.sma(36) : error 017: undefined symbol "iKey"
4 Errors.
Could not locate output file 1702047427_fov.amx (compile failed).PHP Kod:#include <amxmodx>
enum _: IPTags {
SayTag, MenuTag, KisaTag
}
new const szTag[IPTags][] = {
"^3[WebAilesi]", "WebAilesi", "Wa"
};
enum _:szMessages { Message_SetFov };
new const szFovMenu[][][] = {
{ "Normal" }, { "Uzak" },{ "2x Uzak"}
};
new iSetting[szMessages],iFovSelect[33];
public plugin_init() {
register_plugin("Fov", "1.0", "QuryWesT");
register_clcmd("say /Fov", "@pGetPlayerFovMenu");
}
@pGetPlayerFovMenu(const IP_IDs) {
new i,iMenu = menu_create(fmt("\r[\y%s\r] \d~> \wGorus Aci Menusu", szTag[MenuTag]), "@pGetPlayerFovMenu_")
for(i=0; i < sizeof(szFovMenu); i++) {
menu_additem(iMenu, fmt("\r[\y%s\r] \d~> \w%s", szTag[KisaTag], szFovMenu[i][0]), fmt("%d", i));
}
menu_setprop(iMenu, MPROP_EXITNAME, fmt("\r[\y%s\r] \d~> \wCikis", szTag[KisaTag]));
menu_display(IP_IDs, iMenu);
}
@pGetPlayerFovMenu_(const IP_IDs, const menu, const item) {
if(item == MENU_EXIT){ menu_destroy(menu);return PLUGIN_HANDLED; }
new iData[6];
menu_item_getinfo(menu,item,_,iData,charsmax(iData));
iKey = str_to_num(iData);
iFovSelect[IP_IDs] = szKey;
@pGetFovThouched(IP_IDs);
client_print_color(IP_IDs, IP_IDs, "%s ^4Fov ayariniz secildi: ^3( ^1%s ^1)", szTag[SayTag], szFovMenu[szKey][0][0]);
@pGetPlayerFovMenu(IP_IDs);
menu_destroy(menu); return PLUGIN_HANDLED;
}
@pGetFovThouched(const iPlayer) {
switch(iFovSelect[iPlayer]) {
case 1: { pSetMessage(iPlayer, 90); }
case 2: { pSetMessage(iPlayer, 100); }
case 3: { pSetMessage(iPlayer, 110); }
}
}
stock pSetMessage(const iPlayer, const Degrees) {
message_begin(MSG_ONE, iSetting[Message_SetFov], {0, 0, 0}, iPlayer);
write_byte(Degrees);
message_end();
}
AMX Mod X Compiler 1.9.0.5271
1702047427_fov.sma(33) : error 017: undefined symbol "iKey"
1702047427_fov.sma(34) : error 017: undefined symbol "szKey"
1702047427_fov.sma(34) : error 076: syntax error in the expression, or invalid function call
1702047427_fov.sma(36) : error 017: undefined symbol "szKey"
4 Errors.
Could not locate output file 1702047427_fov.amx (compile failed).
Kapat.
)

