Witam. Mam taki problem jak wpisze /serwer to na liscie są 2 serwery lecz po naciśnięciu na który kolwiek nic się nie dzieje i w konsoli pisze takie coś:
Client with that name or userid not found
Server tried to send invalid command:" IP serwera
W czym jest problem?
 
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Menu serwerow"
#define VERSION "1.0"
#define AUTHOR "Szymon035"
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /serwer","AwesomeMenu")
    register_clcmd("say /serwery","AwesomeMenu")
    register_clcmd("say /server","AwesomeMenu")
    register_clcmd("say /servery","AwesomeMenu")
    
    // Add your code here...
}
public AwesomeMenu(id)
{
    new menu = menu_create("Menu serwerow CS-GoodShot.pl", "menu_handler")
    menu_additem(menu, "1# Cs-GoodShot.pl [ONLY De-Dust2]", "1", 0)
    menu_additem(menu, "2# Cs-GoodShot.pl [JailBreak]", "2", 0)
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
    menu_display(id, menu, 0)
}
public menu_handler(id, menu, item)
{
    if (item == MENU_EXIT)
    {
        return PLUGIN_HANDLED
    }
    new data[6], iName[64]
    new access, callback
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
    new key = str_to_num(data)
    switch(key)
    {
        case 1:{
            client_cmd(id, "connect 193.33.177.44:27146")
            menu_destroy(menu)
            return PLUGIN_HANDLED
        }
        case 2:{
            client_cmd(id, "connect 80.82.16.67:27021")
            menu_destroy(menu)
            return PLUGIN_HANDLED
        }
    }
    menu_destroy(menu)
    return PLUGIN_HANDLED
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
					
					Użytkownik Szymon95 edytował ten post 06.10.2013 19:48


 Forum
 
Forum
 Użytkownicy
 
Użytkownicy
 Kalendarz
 
Kalendarz
 Dodatki SourceMod
 
Dodatki SourceMod



 
	 Temat jest zamknięty
 Temat jest zamknięty![[ROZWIĄZANE] Plugin /serwer: post #1](https://amxx.pl/public/style_images/tctc91_luminous/icon_share.png) 
					



 
				
				














