Mattsy 29 Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 Zdravim dam vam tu tut na prianie. Ide o prikaz /taxi ktore ked napisete tak sa setkym odosle kde ste. Prikaz /news mam robeny pre novinarov. Ideme k veci: do OnPlayerCommandText dcmd(news,4,cmdtext); dcmd(taxi,4,cmdtext); Niekam do modu(nie do publicu!!!!): Príkaz news: dcmd_news(playerid,params[])//prikaz { if(povolanie[playerid] == 18)//ak je novinar { if(IsPlayerConnected(playerid)) { if(!strlen(params)) SendClientMessage(playerid, COLOR_***, "[ ! ] Použi: /news [CLANOK]");//pouzitie else { new string[128];//defnicia stringu new string2[128];//definica strinug format(string, sizeof(string), "[ News ] Novinár %s vydal článok:",PlayerName(playerid));//text SendClientMessageToAll(COLOR_***, string);//farba a ze sa odosle setkym format(string2, sizeof(string2), "%s",params);//toto sluzi nato co napise ten novinar SendClientMessageToAll(COLOR_***, string2);//farba a ze sa odosle setkym } } }else{ SendClientMessage(playerid,COLOR_RED,"Musíš byť novinár aby si mohol vydávať článok");//ak nie je novinar } return 1; } Prikaz taxi: Funguje to na rovnakom principe len trosku zmenene dcmd_taxi(playerid,params[])//prikaz { if(IsPlayerConnected(playerid)) { if(!strlen(params)) SendClientMessage(playerid, COLOR_***, "[ ! ] Použi: /taxi [POZICIA]");//ak zle zada prikaz else { new string[128];//definica stringu format(string, sizeof(string), "[ TAXI ] Hráč %s potrebuje odvoz, nachádza sa v %s [ ! ]",PlayerName(playerid),params);//text co sa odosle SendClientMessageToAll(COLOR_***, string);//farba a ze sa odosle setkym } } return 1; } To je setko, je to lahke a snad ste ma pochopili . Link to comment Share on other sites More sharing options...
Mirdoslavovic 0 Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 Pekny CraShi to se ti povedlo :thumbup: Link to comment Share on other sites More sharing options...
Paulie 0 Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 Tj je to výborný TUT :thumbup: Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 15. Březen, 2009 Author Share Odesláno: 15. Březen, 2009 heh diky a mirdoslavovic pls nevol ma CraSh ale pis radsej "cRaShErI :D" diky Link to comment Share on other sites More sharing options...
Guest [*LoNg*]LiFe Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 myslel cRaShEr pekny tut pocuvaj Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 Zde není co dodat. Každopádně bych to udělal uplně jinak... cyklus for + zjistění jestli jsou taxikáři na serveru + odeslání zprávy pouze jim Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 Daw3":bm2w4uf2]Zde není co dodat. Každopádně bych to udělal uplně jinak... cyklus for + zjistění jestli jsou taxikáři na serveru + odeslání zprávy pouze jim přesně tak, ale udělal bych to ještě jinak ale to vám neřeknu jeste by ste me slohli xD Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 15. Březen, 2009 Share Odesláno: 15. Březen, 2009 taky tak .. my to máme v modu úúplně jinak.. asi proto že sjem to já nedělal :-D Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 15. Březen, 2009 Author Share Odesláno: 15. Březen, 2009 Daw3 ja ti tak nechcem lebo sa nechcem opicit po MT2 a co z toho ze len taxikari ak nebude ziadny pripojeny? a ty si na opacnej konci mapy? Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 16. Březen, 2009 Share Odesláno: 16. Březen, 2009 Tak nebudeš volat /taxi ale pomoc! taxi je prostě výhradně pro taxikáře.. Aspon u nás Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 16. Březen, 2009 Author Share Odesláno: 16. Březen, 2009 hej lebo vy to mate este z MT tam je to tak ale to je kazdeho vec Link to comment Share on other sites More sharing options...
Guest spectator Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 PLS HELP (1338) : error 017: undefined symbol "povolanie" (1338) : warning 215: expression has no effect (1338) : error 001: expected token: ";", but found "]" (1338) : error 029: invalid expression, assumed zero (1338) : fatal error 107: too many error messages on one lin Link to comment Share on other sites More sharing options...
Guest spectator Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 riadok if(povolanie[playerid] == 11)//ak je novinar zmenil som na 11 podla mojho modu Link to comment Share on other sites More sharing options...
Guest spectator Odesláno: 18. Březen, 2009 Share Odesláno: 18. Březen, 2009 pls a su tam chyby pls help Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 18. Březen, 2009 Author Share Odesláno: 18. Březen, 2009 jzs demencia mas premnu povolani ne tak si to zmen (kam az ta dmnc siaha) Link to comment Share on other sites More sharing options...
Guest spectator Odesláno: 21. Březen, 2009 Share Odesláno: 21. Březen, 2009 oki som zemnil Link to comment Share on other sites More sharing options...
Guest ScRap.66 Odesláno: 5. Duben, 2009 Share Odesláno: 5. Duben, 2009 Skvělý TUT :thumbup: Link to comment Share on other sites More sharing options...
Lukman 0 Odesláno: 15. Duben, 2009 Share Odesláno: 15. Duben, 2009 já jsem to nepochopil, neumim pawno xD ale jestli někdy budu umět a budu mít vlastní mod, použiju to, takže dík žes to sem dal :rap: Link to comment Share on other sites More sharing options...
Fr0st 23 Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 Mattsy dobrý TuT ale škoda že mi vyhadzuje Errory prosím ťa pozrel by si sa nato ?? C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1507) : error 017: undefined symbol "dcmd" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1508) : error 017: undefined symbol "dcmd_taxi" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : error 017: undefined symbol "params" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : warning 215: expression has no effect C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : error 001: expected token: ";", but found ")" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. Link to comment Share on other sites More sharing options...
Guest Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 Mattsy dobrý TuT ale škoda že mi vyhadzuje Errory prosím ťa pozrel by si sa nato ?? C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1507) : error 017: undefined symbol "dcmd" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1508) : error 017: undefined symbol "dcmd_taxi" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : error 017: undefined symbol "params" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : warning 215: expression has no effect C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : error 001: expected token: ";", but found ")" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(1513) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. nemáš definici dcmd #define dcmd(%1,%2,%3) if((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 Link to comment Share on other sites More sharing options...
Fr0st 23 Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : error 036: empty statement C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : warning 215: expression has no effect C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : error 001: expected token: ";", but found ")" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Teraz toto .. Link to comment Share on other sites More sharing options...
Guest Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : error 036: empty statementC:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : warning 215: expression has no effect C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : error 001: expected token: ";", but found ")" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2402) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Teraz toto .. tak sem dej kod Link to comment Share on other sites More sharing options...
Fr0st 23 Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 dcmd_taxi(playerid,params[])//prikaz { if(IsPlayerConnected(playerid)) { if(!strlen(params)) SendClientMessage(playerid, F_Zelena1***, "[ ! ] Použi: /taxi [POZICIA]"); else { new string[128];//definica stringu format(string, sizeof(string), "[ TAXI ] Hráč %s potrebuje odvoz, nachádza sa v %s [ ! ]",PlayerName(playerid),params);//text co sa odosle SendClientMessageToAll(COLOR_***, string);//farba a ze sa odosle setkym } } return 1; } a OnPlayerCommandText if (strcmp("/taxi", cmdtext, true, 10) == 0) { dcmd(taxi,4,cmdtext); return 1; } Link to comment Share on other sites More sharing options...
Guest Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 dcmd_taxi(playerid,params[])//prikaz { if(IsPlayerConnected(playerid)) { if(!strlen(params)) SendClientMessage(playerid,0xFFFFFFAA, "[ ! ] Použi: /taxi [POZICIA]"); else { new string[128];//definica stringu format(string, sizeof(string), "[ TAXI ] Hráč %s potrebuje odvoz, nachádza sa v %s [ ! ]",PlayerName(playerid),params));//text co sa odosle SendClientMessageToAll(0xFFFFFFAA, string);//farba a ze sa odosle setkym } } return 1; } a OnPlayerCommandText dcmd(taxi,4,cmdtext); if (strcmp("/x", cmdtext, true, 10) == 0) { return 1; } asi někjak takhle Link to comment Share on other sites More sharing options...
Fr0st 23 Odesláno: 6. Březen, 2012 Share Odesláno: 6. Březen, 2012 C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2406) : error 017: undefined symbol "PlayerName" C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2406) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\h\gamemodes\specialmod.pwn(2406) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. sry ale 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