CMD:dialoghelp(playerid) { new kimenet[2048], line[512]; kimenet[0] = EOS; new File:tmp=fopen(\"dialoghelp.txt\"); if(tmp) { while(fread(tmp, line, 512)) strins(kimenet, line, strlen(kimenet), sizeof(kimenet)); fclose(tmp); } ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, \"{FFFFFF}Dialog szabályzat 1. oldal\", kimenet, \"Elfogad\", \"Elutasít\"); return 1;}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {if(dialogid == DIALOG_NONE) {if(!response) return Kick(playerid);// Ide ha elfogadta (Bal gomb)}return 1;}
#define DIALOG_RULES 2555CMD:dialoghelp(playerid) { new kimenet[2048], line[512]; kimenet[0] = EOS; new File:tmp=fopen(\"dialoghelp.txt\"); if(tmp) { while(fread(tmp, line, 512)) strins(kimenet, line, strlen(kimenet), sizeof(kimenet)); fclose(tmp); } ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, \"{FFFFFF}Dialog szabályzat 1. oldal\", kimenet, \"Elfogad\", \"Elutasít\"); return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_RULES) { if(!response) return Kick(playerid); } return 1;}
#include <a_samp>#include <zcmd>#define DIALOG_RULES 2555CMD:dialoghelp(playerid) { new kimenet[2048], line[512]; kimenet[0] = EOS; new File:tmp=fopen(\"dialoghelp.txt\"); if(tmp) { while(fread(tmp, line, 512)) strins(kimenet, line, strlen(kimenet), sizeof(kimenet)); fclose(tmp); } ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, \"{FFFFFF}Dialog szabályzat 1. oldal\", kimenet, \"Elfogad\", \"Elutasít\"); return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_RULES) { if(!response) return Kick(playerid); } return 1;}
#pragma unused strtok