djvale5 0 Odesláno: 9. Srpen, 2014 Share Odesláno: 9. Srpen, 2014 Čaute, neviete ako mám spraviť to keď hráč napíše príkaz ktorý neexistuje tak aby mu vypísalo "Tento príkaz neexistuje ---> /help" Link to comment Share on other sites More sharing options...
0 danda951 0 Odesláno: 9. Srpen, 2014 Share Odesláno: 9. Srpen, 2014 Misto return 0; v public OnPlayerCommandText(playerid, cmdtext[]) dáš: return SendClientMessage(playerid, bila, "Tento příkaz neexistuje --> /help"); Link to comment Share on other sites More sharing options...
0 djvale5 0 Odesláno: 9. Srpen, 2014 Author Share Odesláno: 9. Srpen, 2014 Aha diky Link to comment Share on other sites More sharing options...
0 danda951 0 Odesláno: 9. Srpen, 2014 Share Odesláno: 9. Srpen, 2014 Nz Link to comment Share on other sites More sharing options...
0 djvale5 0 Odesláno: 9. Srpen, 2014 Author Share Odesláno: 9. Srpen, 2014 Nefunguje zadal som tento kód : #include <a_samp> #define SCM SendClientMessage #define SCMTA SendClientMessage public OnPlayerCommandText(playerid, cmdtext[]) { return SCM(playerid,0xFF0000AA,"Prikaz neexistuje ! --> /help"); return 1; } Link to comment Share on other sites More sharing options...
0 TuronCZ 0 Odesláno: 9. Srpen, 2014 Share Odesláno: 9. Srpen, 2014 Však psal místo return 0; ne ? ... tam kde máš napsané return SCM(playerid,0xFF0000AA,"Prikaz neexistuje ! --> /help"); tam se dává normální příkaz ne ? Link to comment Share on other sites More sharing options...
0 NoJo_ 0 Odesláno: 9. Srpen, 2014 Share Odesláno: 9. Srpen, 2014 Keď používaš OnPlayer... tak je to tak ako napísal turon.Ak však používaš ZCMD sprav to takto : public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(success == 0) return SendClientMessage(playerid, CERVENA, "tvoj text"); return 1; } Link to comment Share on other sites More sharing options...
0 _Martin_ 10 Odesláno: 10. Srpen, 2014 Share Odesláno: 10. Srpen, 2014 djvale5 to je unreachable code, druhý return musíš zmazať. Link to comment Share on other sites More sharing options...
0 INSANE_25_ICON 0 Odesláno: 10. Srpen, 2014 Share Odesláno: 10. Srpen, 2014 public OnPlayerCommandText(playerid, cmdtext[]) { new strunka[50]; format(strunka, 50, "SERVER {00ff00}: Prikaz {33ccff}%s neexistuje", cmdtext); return SendClientMessage(playerid, 0x33ccffaa, strunka); } Stačí sa pozrieť na nejaké stranky... Link to comment Share on other sites More sharing options...
0 ZaKlaus 17 Odesláno: 10. Srpen, 2014 Share Odesláno: 10. Srpen, 2014 [sorry, nevsimavost.] Link to comment Share on other sites More sharing options...
0 Agent_007 0 Odesláno: 10. Srpen, 2014 Share Odesláno: 10. Srpen, 2014 do OnPlayerCommandText skus to takto new prikaz[128]; format(prikaz, 128,"Na server tento prikaz %s neexistuje ----> /help", cmdtext); SendClientMessage(playerid, 0xff0000ff, prikaz); return 1; } Link to comment Share on other sites More sharing options...
0 djvale5 0 Odesláno: 10. Srpen, 2014 Author Share Odesláno: 10. Srpen, 2014 Ďakujem, pochopil som to (som fakt nevšímaví) Link to comment Share on other sites More sharing options...
Dotaz
djvale5 0
Čaute, neviete ako mám spraviť to keď hráč napíše príkaz ktorý neexistuje tak aby mu vypísalo "Tento príkaz neexistuje ---> /help"
Link to comment
Share on other sites
11 odpovědí na tuto otázku
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