#include <a_samp>#include <zcmd>#define dialog_1; CMD:teles(playerid,params[]){ShowPlayerDialog(playerid,dialog_1,DIALOG_STYLE_LIST,\"..::Teleportok::..\",\"Las Venturasi Reptér\\nSan Fierroi Reptér\\nLos Santos Reptér\\nElhagyot Reptér\",\"Telézek\", \"\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == dialog_1){if(response){ switch(listitem) { case 0: { SetPlayerPos(playerid,1306.7422,1267.5371,10.8203); } case 1: { SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484); } case 2: { SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766); } case 3: { SetPlayerPos(playerid,410.7249,2452.9683,16.5000); } } } } return 1;}
#include <a_samp>#include <zcmd>#define dialog_1; CMD:teles(playerid,params[]){ShowPlayerDialog(playerid,dialog_1,DIALOG_STYLE_LIST,\"..::Teleportok::..\",\"Las Venturasi Reptér\\nSan Fierroi Reptér\\nLos Santos Reptér\\nElhagyot Reptér\",\"Telézek\", \"\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == dialog_1){if(response){ switch(listitem) { case 0: { SetPlayerPos(playerid,1306.7422,1267.5371,10.8203); } case 1: { SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484); } case 2: { SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766); } case 3: { SetPlayerPos(playerid,410.7249,2452.9683,16.5000); } } } } return 1;}Így probáld meg! Nem kell az a sok sz*r.
#include <a_samp>#include <zcmd>#define dialog_1 100 CMD:teles(playerid,params[]){ShowPlayerDialog(playerid,dialog_1,DIALOG_STYLE_LIST,\"..::Teleportok::..\",\"Las Venturasi Reptér\\nSan Fierroi Reptér\\nLos Santos Reptér\\nElhagyot Reptér\",\"Telézek\", \"\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == dialog_1){if(response){ switch(listitem) { case 0: { SetPlayerPos(playerid,1306.7422,1267.5371,10.8203); } case 1: { SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484); } case 2: { SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766); } case 3: { SetPlayerPos(playerid,410.7249,2452.9683,16.5000); } } } } return 1;}
De, mert definálással is meglehet csinálni. #include <a_samp>#include <zcmd>#define dialog_1 100 CMD:teles(playerid,params[]){ShowPlayerDialog(playerid,dialog_1,DIALOG_STYLE_LIST,\"..::Teleportok::..\",\"Las Venturasi Reptér\\nSan Fierroi Reptér\\nLos Santos Reptér\\nElhagyot Reptér\",\"Telézek\", \"\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == dialog_1){if(response){ switch(listitem) { case 0: { SetPlayerPos(playerid,1306.7422,1267.5371,10.8203); } case 1: { SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484); } case 2: { SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766); } case 3: { SetPlayerPos(playerid,410.7249,2452.9683,16.5000); } } } } return 1;}
Írd átt a #define dialog_1. 100new dialog_1; -re!
Írd átt a #define dialog_1. 100new dialog_1; -re! most se jó nem lehet az a baj, hogy filterscriptbe próbálom, vagyis írjam be a módba? [/quote]Amit én írtam azt a modba ágyazd be nekem is ott volt.
Írd átt a #define dialog_1. 100new dialog_1; -re! most se jó nem lehet az a baj, hogy filterscriptbe próbálom, vagyis írjam be a módba? [/quote]na beleraktam de most se jó :@Amit én írtam azt a modba ágyazd be nekem is ott volt. [/quote]
#include <a_samp>#include <zcmd>#define FILTERSCRIPTnew dialog_1;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" BlackStyler teleport bekapcsolva!\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}main(){print(\"\\n----------------------------------\");print(\" BlackStyler teleport kikapcsolva!\");print(\"----------------------------------\\n\");}COMMAND:teles(playerid,params[]){ShowPlayerDialog(playerid,dialog_1,DIALOG_STYLE_LIST,\"..::Teleportok::..\",\"Las Venturasi Reptér\\nSan Fierroi Reptér\\nLos Santos Reptér\\nElhagyot Reptér\",\"Telézek\", \"\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid==dialog_1){if(response){if(listitem==0){SetPlayerPos(playerid,1306.7422,1267.5371,10.8203);}if(listitem==1){SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484);}if(listitem==2){SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766);}if(listitem==3){SetPlayerPos(playerid,410.7249,2452.9683,16.5000);}}}return 1;}