Om3n 78 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 Takze jelikoz ma samp 0.3 public OnPlayerClickPlayer tak proc toho nevyuzit treba na pekny PM system. V nejake starsi RC verzi to bylo tak ze kdyz ste klikli na hrace v tabulce (klavesa TAB) tak vam to otevrelo textove okno jakoby jste chteli napsat do chatu a samo se tam napsalo "/pm ID " a uz ste jenom psali a pak enter...jenomze tahle psaci funkce uz je co ja vim zrusena....tak sem na samp foru hledal neco podobnyho a nasel sem celkem hezkej PM system...jenze mel problem, kdyz ste poslali zpravu nekomu jinymu nez sobe tak vam spadnul server....tak sem se rozkodl to opravit a dat vam to sem....ale ted uz dost kecu a pustime se do prace:Zacneme rovnou od zacatku:nahoru dejte toto: #define DIALOGID_PM 123tohle urcuje ID dialogu...jelikoz predpokladam ze to nebude jedine dialogove okno co pouzijete tak sem nechal ID 123 aby jste na to uz v podstate nemuseli myslet.a toto:new PlayerPMTarget[MAX_PLAYERS];je to promena ktera vam urcuje na koho jste kliknuli v tabulce hracupotom:public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if (source == CLICK_SOURCE_SCOREBOARD) { PlayerPMTarget[playerid] = clickedplayerid; ShowPlayerDialog(playerid, DIALOGID_PM, DIALOG_STYLE_INPUT,"Poslat PM","Zde napis zpravu:\n","Odeslat","Storno"); } return 1; }tadyto nastavi tu promenou na hrace na ktereho jste kliknuli a otevce dialogove okno s inputem na text(polem kam napisete text)a dale do modu dejte toto:public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (response && dialogid == DIALOGID_PM) { if (!IsPlayerConnected(PlayerPMTarget[playerid])) return SendClientMessage(playerid, 0xE10000AA, "Hrac neni pripojen."); new msg[128]; new msg2[128]; format(msg, 128, "[PM] Od %s : %s", Jmeno(playerid), inputtext); SendClientMessage(PlayerPMTarget[playerid], 0xFFFF00AA, msg); format(msg2, 128, "[PM] Odeslana hraci %s : %s", Jmeno(PlayerPMTarget[playerid]), inputtext); SendClientMessage(playerid, 0xFFFF00AA, msg2); for(new a=0;a toto odesle vasi zpravu kterou ste napsali do toho okenka hraci na ktereho jste kliknuli. a jeste pokud vam to hodi error ohledne "Jmeno" tak dejte dolu do modu tohle: stock Jmeno(playerid) { new j[255]; GetPlayerName(playerid,j,255); return j; } Aby jste si to mohli vyzkouset sami na sobe tak to neni omezene ze nemuzete poslat PM sami sobe...takze kdyz kliknete na sebe tak si muzete poslat PM aby jste vedeli jak to vypada.Pokud s tim nekdo bude mit problemy tak piste.EDIT: na prani uzivatele "tippl" byl pridan do TuTu i PM Reader pro RCON adminy...;a++) Návod označen jako platný Ten to návod byl označen jako platný.Návod může být kdykoli označen jako nevhodný či neplatný Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 Ta za vodou v rákosí vedi jak delat pawn vypada to dobre du to vyzkouset :thumbup: Link to comment Share on other sites More sharing options...
NextWarrior 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 hej zdr Om3n vzpominas si na me? Chtel bych pomoct na tabulku jako je z Pm systemu nevis jak na ni? Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 21. Říjen, 2009 Author Share Odesláno: 21. Říjen, 2009 TADY JE TUT a je to DIALOG_STYLE_INPUT Link to comment Share on other sites More sharing options...
NextWarrior 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 jj moc ti dekuj,chces si nekdy vyzkouset muj mod mam tam nove prikazy /beer,/wine,/cigareta Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 jj moc ti dekuj,chces si nekdy vyzkouset muj mod mam tam nove prikazy /beer,/wine,/cigareta OT: kdyz uz pises o ty cigarete teda nwm jestli to je vono co mas ty ale jak se udělá něco jako maj na WtLS. Ze hrac drzi v ruce joint z kteryho de normalne dym a kdyz kliknes tak zakouri atd :?: Link to comment Share on other sites More sharing options...
Majitel ffredyk 167 Odesláno: 21. Říjen, 2009 Majitel Share Odesláno: 21. Říjen, 2009 SetPlayerSpecialAction Link to comment Share on other sites More sharing options...
NextWarrior 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 jj mas pravdu...chces si to vyzkouset aspon ty ffredyku? Link to comment Share on other sites More sharing options...
Majitel ffredyk 167 Odesláno: 21. Říjen, 2009 Majitel Share Odesláno: 21. Říjen, 2009 jj mas pravdu...chces si to vyzkouset aspon ty ffredyku? Nn.. Ja uz to zkousel na RC5-2 Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 21. Říjen, 2009 Author Share Odesláno: 21. Říjen, 2009 to zpatecnik: TOHLE TI POMUZE Link to comment Share on other sites More sharing options...
NextWarrior 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 jj moc ti dekuj,chces si nekdy vyzkouset muj mod mam tam nove prikazy /beer,/wine,/cigareta OT: kdyz uz pises o ty cigarete teda nwm jestli to je vono co mas ty ale jak se udělá něco jako maj na WtLS. Ze hrac drzi v ruce joint z kteryho de normalne dym a kdyz kliknes tak zakouri atd :?: jj je to ono,a chtel by sis to vyzkouset? Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 21. Říjen, 2009 Author Share Odesláno: 21. Říjen, 2009 uz dost OT....RESIT NA ICQ NEBO SZ Link to comment Share on other sites More sharing options...
NextWarrior 0 Odesláno: 21. Říjen, 2009 Share Odesláno: 21. Říjen, 2009 OK Link to comment Share on other sites More sharing options...
filip212 0 Odesláno: 24. Říjen, 2009 Share Odesláno: 24. Říjen, 2009 Píše mi to toto: c:\samp\pawno\ktmr_0.1be.pwn(276) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickPlayer") c:\samp\pawno\ktmr_0.1be.pwn(278) : error 017: undefined symbol "CLICK_SOURCE_SCOREBOARD" c:\samp\pawno\ktmr_0.1be.pwn(281) : error 017: undefined symbol "ShowPlayerDialog" c:\samp\pawno\ktmr_0.1be.pwn(384) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse") c:\samp\pawno\ktmr_0.1be.pwn(398) : error 030: compound statement not closed at the end of file (started at line 386) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. Prosím čo s tým mám urobiť? Link to comment Share on other sites More sharing options...
StarsCream_Cze 1 Odesláno: 24. Říjen, 2009 Share Odesláno: 24. Říjen, 2009 stáhni si pawno 0.3 Link to comment Share on other sites More sharing options...
filip212 0 Odesláno: 24. Říjen, 2009 Share Odesláno: 24. Říjen, 2009 Aha Ďakujem. Link to comment Share on other sites More sharing options...
filip212 0 Odesláno: 24. Říjen, 2009 Share Odesláno: 24. Říjen, 2009 V pawne 0.3 mi píše toto: C:\samp\pawno0.3\ktmr.pwn(236) : error 029: invalid expression, assumed zero C:\samp\pawno0.3\ktmr.pwn(236) : error 004: function "OnPlayerClickPlayer" is not implemented C:\samp\pawno0.3\ktmr.pwn(238) : error 017: undefined symbol "source" C:\samp\pawno0.3\ktmr.pwn(240) : error 017: undefined symbol "clickedplayerid" C:\samp\pawno0.3\ktmr.pwn(245) : error 030: compound statement not closed at the end of file (started at line 223) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 24. Říjen, 2009 Share Odesláno: 24. Říjen, 2009 Asi víš co by se mi hodně hodilo ? Link to comment Share on other sites More sharing options...
filip212 0 Odesláno: 24. Říjen, 2009 Share Odesláno: 24. Říjen, 2009 Aha už som nato prišiel: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (response && dialogid == DIALOGID_PM) { if (!IsPlayerConnected(PlayerPMTarget[playerid])) return SendClientMessage(playerid, 0xE10000AA, "Hrac neni pripojen."); new msg[128]; new msg2[128]; format(msg, 128, "[PM] Od %s : %s", Jmeno(playerid), inputtext); SendClientMessage(PlayerPMTarget[playerid], 0xFFFF00AA, msg); format(msg2, 128, "[PM] Odeslana hraci %s : %s", Jmeno(PlayerPMTarget[playerid]), inputtext); SendClientMessage(playerid, 0xFFFF00AA, msg2); PlayerPMTarget[playerid] = INVALID_PLAYER_ID; } Chýba tam return 1; } Link to comment Share on other sites More sharing options...
ATomas 286 Odesláno: 25. Říjen, 2009 Share Odesláno: 25. Říjen, 2009 dobry napad tak toto mne nenapdalo njn nekdy bych mnel projet ty includy aspon bych se dozvedel ze existuje public OnPlayerClickPlayer a udelal bych si to taky Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 31. Říjen, 2009 Share Odesláno: 31. Říjen, 2009 hej me to piše error: C:\Users\David PC.DAVID-PC\Desktop\untitlm.pwn(1040) : error 030: compound statement not closed at the end of file (started at line 1028) Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 31. Říjen, 2009 Share Odesláno: 31. Říjen, 2009 asi si nekde zapomel zavorku ne? Link to comment Share on other sites More sharing options...
Guest FuCkeR Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 je to good ale me to nejde na servery mam to bez erroru ale ked napisem /pm id text tak napise ze neexistuje ten prikaz poradili by ste me nekdo prosim? Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 _Killer":2v2aqe0l]je to good ale me to nejde na servery mam to bez erroru ale ked napisem /pm id text tak napise ze neexistuje ten prikaz poradili by ste me nekdo prosim? ty si lama to je pres TAB xD Link to comment Share on other sites More sharing options...
Guest FuCkeR Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 jak cez TAB? co jako napis to normalne a ne ze TAB ja si kuknul jak to ma byt a skusel sem to aj tak a neslo to. ,,A nejsem lama"! 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