Paulie 0 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 Zdar pawneři... toto je můj 1 tut tak doufám ,že někomu pomůže.De o to ,že na nějakém místě budete mít model zbraně a přes to si to koupíte. Dám sem jednu zbraň např.uzi Takže mezi new new Menu:uzi; new uzi1; Do ongemodelnit uzi1 = CreatePickup(352,1,vaše souřadnice); uzi = CreateMenu("~r~Uzi",3,20,220,200,100); AddMenuItem(uzi, 0, "Koupit"); AddMenuItem(uzi, 0, "Konec"); Do Pickuppickup if(uzi1 == pickupid) { ShowMenuForPlayer(uzi, playerid); } A do Menurow new Menu:Current = GetPlayerMenu(playerid); if (Current == uzi ) { switch(row) { case 0:{ SendClientMessage(playerid,COLOR_RED,"Koupil sis Uzi"); GivePlayerWeapon(playerid, 28, 500); GivePlayerMoney(playerid, -1000); } } } Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 Viš o tom že GetPlayerName(playerid, sendername, sizeof(sendername)); ti nebude fungovat? -- http://wiki.sa-mp.com/wiki/GetPlayerName aneb C:\(186) : error 017: undefined symbol "sendername" C:\186) : error 017: undefined symbol "sendername" C:\(186) : error 029: invalid expression, assumed zero Jinak dobrý TUT pro lamy :thumbup: Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 inspiracia z mojho modu vsak? Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 27. Únor, 2009 Author Share Odesláno: 27. Únor, 2009 To sendername už sem přidal mezi new .. a inspiroval jsem se to je pravda ,ale udělal sem to sám Link to comment Share on other sites More sharing options...
Guest Pongo Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 Tut vedcsiu kktinu si sem nemohol dat to tu je tusim a aj tak to je lachke Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 Pongo tvoj podpis mi rozstiahol obrazovku Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 27. Únor, 2009 Author Share Odesláno: 27. Únor, 2009 Pongo tak mi pošli odkaz kde to je a někomu se to může hodit když ještě neumí moc pawno Link to comment Share on other sites More sharing options...
ondra852 0 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 Mam dojem, že návod na menu a pickup tu už máme Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 27. Únor, 2009 Author Share Odesláno: 27. Únor, 2009 To sice jj ,ale přesně na tohle tu není Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 new Menu:Current = GetPlayerMenu(playerid); if (Current == uzi ) { switch(row) { case 0:{ GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid,COLOR_RED,"Koupil sis Uzi"); GivePlayerWeapon(playerid, 28, 500); GivePlayerMoney(playerid, -1000); K čemu tam máš GetPlayerName a pak ho ani nepoužiješ?? Máš to cele pojeble nejake mas nahore AddMenuItem("Konec") ale v MenuRow ji nepoužiješ?? a pak to bude hazet dalši error? Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 27. Únor, 2009 Author Share Odesláno: 27. Únor, 2009 Nebude mě to tak de Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 27. Únor, 2009 Author Share Odesláno: 27. Únor, 2009 Opravdu to jde... zkoušelsem to schválně na novím mode.Bude to házet chyby jen když nemáš nadefinovanou barvu a warningy s lose... a to se odstraní takle #define COLOR_RED 0xAA3333AA a #pragma tabsize 0 Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 j ale ams to tam zbytocne pretoze to vobec nepouzijes Link to comment Share on other sites More sharing options...
ondra852 0 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 To sice jj ,ale přesně na tohle tu není To je jedno, ale každej to z toho dokáže v poho sám Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 Tak maš podělany pawno prostě tam musiš mit case 1 bo smazat to "Konec" Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 27. Únor, 2009 Share Odesláno: 27. Únor, 2009 mach nemui ja mam tiez EXIT v menu a nedavam case 1 a facha to v poho Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 28. Únor, 2009 Author Share Odesláno: 28. Únor, 2009 Přessně jak crasher říká vím že si to udělá každý sám ,ale začátečník si to neudělá.... Link to comment Share on other sites More sharing options...
Adamos 1 Odesláno: 1. Březen, 2009 Share Odesláno: 1. Březen, 2009 sry ze otravujem ale chcel by som sa zeptat ze nevite proc mi to hazi warningy kdyz dam medzi new to sendername? tu tyto warningy to hadze warning 219: local variable "sendername" shadows a variable at a preceding level warning 219: local variable "sendername" shadows a variable at a preceding level warning 219: local variable "sendername" shadows a variable at a preceding level warning 219: local variable "sendername" shadows a variable at a preceding level warning 219: local variable "sendername" shadows a variable at a preceding level warning 203: symbol is never used: "sendername" Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 1. Březen, 2009 Share Odesláno: 1. Březen, 2009 to sendername si vymaz a aj toto GetPlayerName(playerid, sendername, sizeof(sendername)); vobec ti to netreba :geek: Link to comment Share on other sites More sharing options...
Adamos 1 Odesláno: 1. Březen, 2009 Share Odesláno: 1. Březen, 2009 jenze ja chci ten warp aby to videli vsetci hraci ze kam ses portl, ne jen ja Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 1. Březen, 2009 Share Odesláno: 1. Březen, 2009 Ty vole to je TUT .... Nechápu proč máš new sendername[256]; a ještě mezi newama.... Podle mě by stačilo 24 nebo bohatě 16 ... Dál jsem se na to moc nekoukal ale tyhle TUTY jsou o ničem .. když to děláte takhle tak to aspon promakejte.. .tohle je o ničem... Už moje babička má lepší TUTy Link to comment Share on other sites More sharing options...
liskji00 0 Odesláno: 22. Duben, 2009 Share Odesláno: 22. Duben, 2009 misto sendername si dej PlayerName je to lepsi Link to comment Share on other sites More sharing options...
Lukman 0 Odesláno: 23. Duben, 2009 Share Odesláno: 23. Duben, 2009 poraď, jsem lama, kde můžu získat ty souřadnice? Link to comment Share on other sites More sharing options...
Guest danikiller Odesláno: 23. Duben, 2009 Share Odesláno: 23. Duben, 2009 EDIT: good Link to comment Share on other sites More sharing options...
Adamos 1 Odesláno: 23. Duben, 2009 Share Odesláno: 23. Duben, 2009 poraď, jsem lama, kde můžu získat ty souřadnice? v hre das /save a potom kuknes v savedpositon.txt tam mas suradnice 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