JOSEFKAT 1 Odesláno: 13. Únor, 2015 Share Odesláno: 13. Únor, 2015 dobrý den viděl sem na jednom servru jednu GPS a docela se mi libi když hráč zada ˇgps obeví je mu růžné body viz foto a ja se prám jak to udelat ?? diky Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 13. Únor, 2015 Share Odesláno: 13. Únor, 2015 DIALOG_STYLE_LIST + switch(listitem) + Nastavíš mu na tej pos CP/dačo podľa čoho sa tam dostane Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 13. Únor, 2015 Author Share Odesláno: 13. Únor, 2015 můžeš udelat vzor takový menší vzor ? Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 13. Únor, 2015 Share Odesláno: 13. Únor, 2015 (upraveno) public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/gps", cmdtext)) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "GPS", "Lokacia 1\nLokacia 2\nLokacia3", "Next", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listiitem, inputtext[]) { switch(dialogid) { case 0: { if(response) { switch(listitem) { case 0: SetPlayerCheckpoint(playerid, X, Y, Z, velkost); } } } } return 1; } public OnPlayerEnterCheckpoint(playerid) DisablePlayerCheckpoint(playerid); Edited 13. Únor, 2015 by Sanios Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 13. Únor, 2015 Author Share Odesláno: 13. Únor, 2015 diky public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/gps", cmdtext)) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "GPS", "Uřad\nYakuza\nWang", "Next", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listiitem, inputtext[]) { switch(dialogid) { case 0: { if(response) { switch(listitem) { case 0: SetPlayerCheckpoint(playerid, 2419.0500,1123.7317,10.8203, velkost); case 1: SetPlayerCheckpoint(playerid, 1906.8401,953.7467,10.8203, velkost); case 2: SetPlayerCheckpoint(playerid, -1971.8469,289.5013,35.1719, velkost); } } } } return 1; } takle ? Link to comment Share on other sites More sharing options...
0 VolfikCZ 33 Odesláno: 13. Únor, 2015 Share Odesláno: 13. Únor, 2015 Tak to zkus jestli to půjde né ? A když né tak to sem napíšeš a napíšeš přesně co tam nejde na tom. Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 14. Únor, 2015 Author Share Odesláno: 14. Únor, 2015 když to dám na server tak napíše že příkaz neexistuje jakto ? Link to comment Share on other sites More sharing options...
0 w.endelin 15 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 (upraveno) Použiváš něco jako třeba zcmd nebo Qcmd? Edited 14. Únor, 2015 by iWendelinnek Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 Pokud máš nějaký gamemód a v tom používáš nějaký command systém tak ti to může blokovat. Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 14. Únor, 2015 Author Share Odesláno: 14. Únor, 2015 Pouzivam jak to upravim ? Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 Napiš aky máš cmd system. Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 14. Únor, 2015 Author Share Odesláno: 14. Únor, 2015 QCMD:zakaznik() { if(GetPlayerJob(playerid) != TAXI1 && GetPlayerJob(playerid) != TAXI2) return SCM(playerid,-1,"Nejsi taxikar !"); if(isnull(params)) return SCM(playerid,-1,"POUZIJ: /zakaznik [id]"); new id = strval(params); if(!IsPlayerConnected(id)) return SCM(playerid,-1,"Hrac neni pripojeny !"); if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"Musis sedet v aute !"); if(Zakaznik[id] == 1) return SCM(playerid,-1,"Hrac si nezavolal taxi !"); else { new Float:pos[3],interier; GetPlayerPos(id,pos[0],pos[1],pos[2]); interier = GetPlayerInterior(id); new car = GetPlayerVehicleID(playerid); SetVehiclePos(car,pos[0],pos[1] + 4,pos[2] + 0.5); LinkVehicleToInterior(car, interier); ForPlayers(i) Zakaznik[id] = false; SCM(id,-1,"Vas taxik je pripraveny !"); SetPlayerInterior(playerid,interier); } return true; } QCMD:celaopen(){ if(GetPlayerJob(playerid) != OCHRANKA) return SCM(playerid,-1,"Niesi ochrankár/dozorca"); MoveObject(Cela[14], 248.5469, 1802.618, 3.674, 2.0); IB(playerid,3,"Cely sa otvaraju"); return true; } mám tenhle nevim jestli je to ono co myslíš Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 tak proč ten příkaz taky nenapíšeš jako qcmd? Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 14. Únor, 2015 Author Share Odesláno: 14. Únor, 2015 mohl bys udělat vzor už si to nevybavuju Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 Wtff vždyť jsi nám právě poslal příkaz v qcmd, co si na tom proboha nevybavuješ? Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 14. Únor, 2015 Author Share Odesláno: 14. Únor, 2015 mám to z jednoho staryho souboru pwn a nevim presne jak se to dava do qcmd ale zkusim na to prijit nemužu na to přijít ... máte naky navod ? Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 QCMD:nazovprikazu() { //Kod return 1; } Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 14. Únor, 2015 Author Share Odesláno: 14. Únor, 2015 QCMD:GPS() { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "GPS", "Uřad\nYakuza\nWang", "Next", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listiitem, inputtext[]) { switch(dialogid) { case 0: { if(response) { switch(listitem) { case 0: SetPlayerCheckpoint(playerid, 2419.0500,1123.7317,10.8203, velkost); case 1: SetPlayerCheckpoint(playerid, 1906.8401,953.7467,10.8203, velkost); case 2: SetPlayerCheckpoint(playerid, -1971.8469,289.5013,35.1719, velkost); } } } } return 1; } error 010: invalid function or declaration error 025: function heading differs from prototype error 021: symbol already defined: "OnDialogResponse" error 017: undefined symbol "listitem" error 017: undefined symbol "velkost" error 017: undefined symbol "velkost" error 017: undefined symbol "velkost" takle ňák ? Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 14. Únor, 2015 Share Odesláno: 14. Únor, 2015 proč tam přidáváš ten return 0; } ??? Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 15. Únor, 2015 Author Share Odesláno: 15. Únor, 2015 a, díky a co mam doplnit do toho "velkost" k čemu to je ? požil sem tohle to od qwera http://pastebin.com/2vZMdeBi a dal sem to do incudle ale nevim jak to mám sprovoznit QCMD:GPS() { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "GPS", "Uřad\nYakuza\nWang", "Next", "Cancel"); return 1; } case 0: { if(response) { switch(listitem) { case 0: SetPlayerCheckpoint(playerid, 2419.0500,1123.7317,10.8203, velkost); case 1: SetPlayerCheckpoint(playerid, 1906.8401,953.7467,10.8203, velkost); case 2: SetPlayerCheckpoint(playerid, -1971.8469,289.5013,35.1719, velkost); } } } } return 1; } co je špatne ? error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration error 010: invalid function or declaration Kde je chyba ?? Link to comment Share on other sites More sharing options...
Dotaz
JOSEFKAT 1
dobrý den viděl sem na jednom servru jednu GPS a docela se mi libi když hráč zada ˇgps obeví je mu růžné body viz foto a ja se prám jak to udelat ?? diky
Link to comment
Share on other sites
19 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