Code: Select all
remove_entity_name("func_buyzone")
Antras klausimas, kaip padaryti taip, kad hudmessage rodytu string %s.
Pas mane yra padaryta
Code: Select all
pClass[33][3];
Code: Select all
pClass[id][1]
Code: Select all
remove_entity_name("func_buyzone")
Antras klausimas, kaip padaryti taip, kad hudmessage rodytu string %s.
Code: Select all
pClass[33][3];
Code: Select all
pClass[id][1]
pClass[id][1] = 1; //pirma klasė
pClass[id][2] = 0; //Ne antra klasė
pClass[id][klasės id, jie yra nurodyti komentaruose mano plugine];
Code: Select all
enum{ CLASS_1, CLASS_2 CLASS_3}; new const ClassNames[][] ={ "Pirma", "Antra", "Trecia"}; new pClass[33]; SomeFunction(client){ if (pClass[client]) { show_hudmessage(client, "%s klase", ClassNames[pClass[client]]); }}
Code: Select all
new shopMenuu[255]; formatex(shopMenuu, charsmax(shopMenuu), "\r Tiiitle"); new shopMenu = menu_create(shopMenu, "shopMenuHandler");
Code: Select all
new shopMenuu[255]; formatex(shopMenuu, charsmax(shopMenuu), "\r Tiiitle"); new shopMenu = menu_create(shopMenuu, "shopMenuHandler");
Code: Select all
new shopMenu = menu_create("\r Title", "shopMenuHandler");
žinau, kad galima taip, bet ar tu į tokia menu įdėsi ML kodus? Ar įdėsi %s kurie rašytu kainą pagal cVar?InvIs wrote:
Bet tai galima ir:Code: Select all
new shopMenuu[255]; formatex(shopMenuu, charsmax(shopMenuu), "\r Tiiitle"); new shopMenu = menu_create(shopMenuu, "shopMenuHandler");
Code: Select all
new shopMenu = menu_create("\r Title", "shopMenuHandler");
Dėl error [1] nesijaudinkit, jei ištaisysim [0] veiks ir tas tada.L 10/05/2012 - 18:00:39: String formatted incorrectly - parameter 4 (total 4)
L 10/05/2012 - 18:00:39: [AMXX] Displaying debug trace (plugin "Untitled.amxx")
L 10/05/2012 - 18:00:39: [AMXX] Run time error 25: parameter error
L 10/05/2012 - 18:00:39: [AMXX] [0] Untitled.sma::OpenShopMenu (line 168)
L 10/05/2012 - 18:00:39: [AMXX] [1] Untitled.sma::mainMenuHandler (line 155)
Code: Select all
new shopMenuu[255]; formatex(shopMenuu, charsmax(shopMenuu), "\r%L", "SHOP_MENU_TITLE"); new shopMenu = menu_create(shopMenuu, "shopMenuHandler");
Code: Select all
new shopMenuu[255]; formatex(shopMenuu, charsmax(shopMenuu), "\r%L", id, "SHOP_MENU_TITLE"); new shopMenu = menu_create(shopMenuu, "shopMenuHandler");
Users browsing this forum: No registered users and 2 guests