0920357689 发表于 2008-11-7 08:46:41

菜單問題

那里寫錯了?


public ShowMenu( id )
{
new szMenuBody
new keys

new nLen = format( szMenuBody, 255, "\y服務器規定^n任何人^n不能作弊...刷頻...爆咪" )

nLen += format( szMenuBody, 255-nLen, "^n\w 1.同意 2.不同意")

keys = (1<<0|1<<1)

show_menu( id, keys, szMenuBody, -1 )
return PLUGIN_CONTINUE
}
public MenuCommand( id, key )
{
switch( key )
{
case 0: {
new name
get_user_name(id, name, 31)
client_print(0,print_chat,"%s已同意服務器規定", name)
}
case 1: {
new userid = get_user_userid( id)
server_cmd( "kick #%d ^"需要同意伺服器規定^"", userid)
}
}
return PLUGIN_HANDLED
}

111222333 发表于 2008-11-22 10:54:11

页: [1]
查看完整版本: 菜單問題