arkadaşlar aşağida verdiğm menu m harfine basınca açılıyor, oyle olmasini istemiyorum sadece say'dan /settings yazinca açılsın istiyorum, basit birsey acil yardim edermisiniz..
Not:plugindeki bazi yazilar ne ingiizce ne de turkce ona aldirmayin
Konu
Buyrun
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <basebuilder>
#define PLUGIN "setinggsmenu"
#define VERSION "1.0"
#define AUTHOR "sLice"
native Main_meniu(id)
new SayText;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("setingebii", "setingebii")
register_clcmd("say /settings", "setingebii")
// register_clcmd("chooseteam", "setingebii")
register_menu("Game Menu", keysmenu, "menu_game")
SayText = get_user_msgid("SayText")
}
public plugin_natives() register_native("setingebii", "setingebii", 1)
public setingebii(id)
{
static menu[500], len
len = 0
// Title
len += formatex(menu[len], charsmax(menu) - len, "\y*\r1\y* \r# \wMotamashes Gachumeba^n", id)
len += formatex(menu[len], charsmax(menu) - len, "\y*\r2\y* \r# \wYvela Xmis Gatishva^n^n", id)
len += formatex(menu[len], charsmax(menu) - len, "\w*\y3\w* \y# \rUkan^n", id)
len += formatex(menu[len], charsmax(menu) - len, "\w*\r0\w* \r# \yGamosvla^n", id)
show_menu(id, keysmenu, menu, -1, "Game Menu")
return PLUGIN_HANDLED
}
public menu_game(id, key)
{
switch (key)
{
case 0:
{
client_cmd(id, "say /mute")
}
case 1:
{
client_cmd(id, "mp3 stop")
}
case 2:
{
client_cmd(id, "say /menu")
}
case 9:
{
client_cmd(id, "clearcfg")
}
}
return PLUGIN_HANDLED;
}
public client_connect(id) client_cmd(id, "");
stock print_col_chat(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!g", "^4");
replace_all(msg, 190, "!y", "^1");
replace_all(msg, 190, "!t", "^3");
if (id) players[0] = id; else get_players(players, count, "ch");
{
for ( new i = 0; i < count; i++ )
{
if ( is_user_connected(players[i]) )
{
message_begin(MSG_ONE_UNRELIABLE, SayText, _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
~ Ücretli Eklenti İçin 'DM' ~ Discord ~
soyle bir hata verdi .amxx'ye cevirirken:
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : error 017: undefined symbol "keysmenu"
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : warning 215: expression has no effect
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : error 001: expected token: ";", but found ")"
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : error 029: invalid expression, assumed zero
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : fatal error 107: too many error messages on one line
@QuryWesT
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : error 017: undefined symbol "keysmenu"
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : warning 215: expression has no effect
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : error 001: expected token: ";", but found ")"
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : error 029: invalid expression, assumed zero
// C:\Users\Red\Desktop\AMXXEBi\BB_BLACKSTREETS\sma\1settings-menu.sma(21) : fatal error 107: too many error messages on one line
@QuryWesT
Benzer Konular
Yorum
535
Okunma
16-10-2024, 18:47
Yorum
1.287
Okunma
11-09-2024, 02:36
Yorum
1.885
Okunma
Yorum
1.933
Okunma
13-08-2024, 16:38