Guest Kocourek Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 tak předvedu vám mojí MP3 kterou sem dělal.. je to na menu.. obsahuje 7 relaxačních songu :-D Mezi NEW přidame : new Menu:Mp3; do OnGameModeInit || OnFilterScript Init( podle toho co máte) dáme Mp3 = CreateMenu("MP3", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(Mp3, 0, "Sound 1"); AddMenuItem(Mp3, 0, "Sound 2"); AddMenuItem(Mp3, 0, "Sound 3"); AddMenuItem(Mp3, 0, "Sound 4"); AddMenuItem(Mp3, 0, "Sound 5"); AddMenuItem(Mp3, 0, "Sound 6"); AddMenuItem(Mp3, 0, "Sound 7"); AddMenuItem(Mp3, 0, "Konec"); do OnPlayerCommandtext dáme if (strcmp("/mp3", cmdtext, true, 10) == 0) { ShowMenuForPlayer(Mp3,playerid); return 1; } a do OnPlayerSelectedMenu dáme if(CurrentMenu == Mp3) { switch(row) { case 0: { PlayerPlaySound(playerid,1062,2113.6211,1683.4001,10.5078); } case 1: { PlayerPlaySound(playerid,1068,2113.6211,1683.4001,10.5078); } case 2: { PlayerPlaySound(playerid,1076,2113.6211,1683.4001,10.5078); } case 3: { PlayerPlaySound(playerid,1097,2113.6211,1683.4001,10.5078); } case 4: { PlayerPlaySound(playerid,1183,2113.6211,1683.4001,10.5078); } case 5: { PlayerPlaySound(playerid,1185,2113.6211,1683.4001,10.5078); } case 6: { PlayerPlaySound(playerid,1187,2113.6211,1683.4001,10.5078); } case 7: { DestroyMenu(Mp3); PlayerPlaySound(playerid,1063,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1069,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1077,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1098,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1184,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1186,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1188,2113.6211,1683.4001,10.5078); } } } (poslední dvě sou best :-D) jinak pokud Error tak napiště.. Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 za 1. mi to připomíná menu z mýho módu ale to neva, za 2. nechápu proč tam dáváš u Konec DestroyMenu když stejně potom zmizí a za 3. tohle má ukončit sound ? case 7:{ PlayerPlaySound(playerid,1063,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1069,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1077,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1098,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1184,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1186,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1188,2113.6211,1683.4001,10.5078); } spíše se to dělá tak že se tam dá sound který neexistuje, např. 1184 Link to comment Share on other sites More sharing options...
Guest Kocourek Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 FreeWall":1yfdjhua]za 1. mi to připomíná menu z mýho módu ale to neva, za 2. nechápu proč tam dáváš u Konec DestroyMenu když stejně potom zmizí a za 3. tohle má ukončit sound ? case 7:{ PlayerPlaySound(playerid,1063,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1069,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1077,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1098,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1184,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1186,2113.6211,1683.4001,10.5078); PlayerPlaySound(playerid,1188,2113.6211,1683.4001,10.5078); } spíše se to dělá tak že se tam dá sound který neexistuje, např. 1184 dal sem to tam, protože to stichne, a když tam dáš naky to neexistuje, začne to padat... takže se na to neptej, ano, máš pravdu, je to trošku inspirovane z tveho modu :-D :rap: ale dělal sem to já Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 padat to nebude, 1844 nebo co sem to říkal je ukončení jednoho soundu takže je to v poho, to ti to bude spíše padat když tam dáš xxx soundů najednou, a ta inspirace mi nevadí, hlavně že to neni zkopčený Link to comment Share on other sites More sharing options...
break 0 Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 dik ale jeste aspon popis te pisnicky jinak toto se mi hodi Link to comment Share on other sites More sharing options...
Guest Kocourek Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 ses posral ne? budu psát noty jak ta relaxační pisnička hraje? no... Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 9. Říjen, 2008 Share Odesláno: 9. Říjen, 2008 ses posral ne? budu psát noty jak ta relaxační pisnička hraje? no... on asi myslel názvy těch songů ty dutá hlavo.. Link to comment Share on other sites More sharing options...
Guest Colin Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 a jak udelam aby ta pisnička se potom vypla? no třeba jako v tom menu kd esou ty pisničky tak třeba upe dole by bylo vypnout mp3 a to by zrušilo pisničku a zrušilo menu a potom zase bych dal /mp3 a vybral hudbu Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 Ja kdyz mam aby nehrala tak pouzivam #define SOUND_OFF 1184 a do menu nebo do prikazu nebo tak PlayerPlaySound(playerid,SOUND_OFF,2259.8911,1689.5200,104.5028); Link to comment Share on other sites More sharing options...
Guest Colin Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 dík už sem si nak poradil snad to mám dobře hale kdyby ne tak mě ten cod opravte pls if(Current == mp3menu) { switch(row) { case 0: { PlayerPlaySound(playerid,1062,2113.6211,1683.4001,10.5078); } case 1: { PlayerPlaySound(playerid,1068,2113.6211,1683.4001,10.5078); } case 2: { PlayerPlaySound(playerid,1076,2113.6211,1683.4001,10.5078); } case 3: { PlayerPlaySound(playerid,1097,2113.6211,1683.4001,10.5078); } case 4: { PlayerPlaySound(playerid,1183,2113.6211,1683.4001,10.5078); } case 5: { PlayerPlaySound(playerid,1185,2113.6211,1683.4001,10.5078); } case 6: { PlayerPlaySound(playerid,1187,2113.6211,1683.4001,10.5078); } case 7: { PlayerPlaySound(playerid,SOUND_OFF,2259.8911,1689.5200,104.5028); DestroyMenu(mp3menu); } } } Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 destroymenu bych tam nedával, spíš HideMenuForPlayer Link to comment Share on other sites More sharing options...
narutoo 0 Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 freewalle zapni stunta :rap2: Link to comment Share on other sites More sharing options...
Guest Colin Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 a proč ne destroyem to laguje bo pada to nebo jaky to ma problem a ten HideMenuForPlayer jak ma byt cely radek Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 Colin najdi si to v pawnu ne, a naruto : stunt je zapnutý a je zapnutý non-stop Link to comment Share on other sites More sharing options...
Guest Colin Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 super už sem si to našel ale při normalnim pawnu mi haze vzdycky nake nesmyslne errory C:\Downloads\pawno\Pawn Developer\hmm.pwn(20) : error 001: expected token: ";", but found "new" C:\Downloads\pawno\Pawn Developer\hmm.pwn(22) : error 001: expected token: ";", but found "new" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. ale přitom na tech radcich je to upe bez chyby a proto použivam pawn developer by Maverick tam mi to nehází zadne errory a v pohodě se to převede nevite kvuli čemu to hazi ty errory v tom normalnim pawnu? radky 20 new Pickup[22]; 22 new chlastani[MAX_PLAYERS]; Link to comment Share on other sites More sharing options...
Guest Gormy Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 se mkrni nad ty řádky jestli ti tam někde nechybí na konci new ; nebo sem dej více těch řádků + - 5 nad a 5 pod Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 ukaz vice radku ..asi jeste dalsich 5 nebo tak nad tim radkem 20 Link to comment Share on other sites More sharing options...
Guest Colin Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 Stačí tohle? new cara; new predajna; new Menu:predajnamenu new Pickup[22]; new Menu:chlastmenu new chlastani[MAX_PLAYERS]; new PLAYERLIST_authed[MAX_PLAYERS]; new ridicak[MAX_PLAYERS]; new iPlayerRole[MAX_PLAYERS]; new Menu:ridicakmenu; new Pickup1 ; Link to comment Share on other sites More sharing options...
Guest Gormy Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 na Menu:chlastmenu = Menu:chlastmenu; new Menu:predajnamenu = new Menu:predajnamenu; new Pickup1 = new Pickup1; Link to comment Share on other sites More sharing options...
Guest Colin Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 Super pomohli jste mi dík moc už mužu pokračovat v normal. pawnu Link to comment Share on other sites More sharing options...
Guest Gormy Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 jj nemáš za co Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 1. Listopad, 2008 Share Odesláno: 1. Listopad, 2008 njn ..není žač Link to comment Share on other sites More sharing options...
Guest prezdivka Odesláno: 20. Listopad, 2008 Share Odesláno: 20. Listopad, 2008 C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mars.pwn(840) : error 017: undefined symbol "CurrentMenu" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. prekrasny error nejde mi to odstranit :thumbdown: Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 20. Listopad, 2008 Share Odesláno: 20. Listopad, 2008 new Menu:Current = GetPlayerMenu(playerid); Link to comment Share on other sites More sharing options...
Guest MaxcoolSK Odesláno: 9. Leden, 2009 Share Odesláno: 9. Leden, 2009 hh tak ja ked to urobim tak mi padne cele pawno Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now