public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { TogglePlayerControllable(playerid, 1); new string[128]; if(dialogid == 1) { if(response == 0) { SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Quando Quiser Logar Digite: /logar [senha]!"); return 1; } if(response >= 1) { if(strlen(inputtext) == 0) { SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297); SetPlayerCameraLookAt(playerid, 1531.2134,-1671.3048,13.3828); SetPlayerPos(playerid, 1541.7875,-1703.0524,13.9816); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Nome Do Servidor", "Bem Vindo ao Servidor\nDigite sua Senha para Logar!!!", "Logar", "Esperar"); return 1; } format(gstring,sizeof(gstring),"/logar %s",inputtext); OnPlayerCommandText(playerid,gstring); return 1; } return 1; } if(dialogid == 2) { if(response == 0) { SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Ok, Caso queira se registrar posteriormente use /registrar [senha]!"); return 1; } if(response >= 1) { if(strlen(inputtext) == 0) { SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297); SetPlayerCameraLookAt(playerid, 1531.2134,-1671.3048,13.3828); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Nome Do Servidor", "Bem Vindo ao Servidor\nDigite sua Senha para Registrar!!!", "Registrar", "Esperar"); return 1; } format(gstring,sizeof(gstring),"/registrar %s",inputtext); OnPlayerCommandText(playerid,gstring); return 1; } return 1; }
Isso geralmente significa que estб faltando alguma pasta em Scriptfiles, como "Contas", ou "Players"...
Poste a sua "OnDialogResponse" |
if (strcmp(cmd, "/logar", true) ==0 ) { if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid)) { new tmppass[64]; if(gPlayerLogged[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USE: /logar [Senha]"); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, " Servidor ", " Nome Do Servidor", "Logar", "Esperar"); return 1; } strmid(tmppass, tmp, 0, strlen(cmdtext), 255); Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } return 1; } if (strcmp(cmd, "/registrar", true) ==0 ) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Vocк jб estб logado."); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 64, "Players/%s.ini", sendername); new File: hFile = fopen(string, io_read); if (hFile) { SendClientMessage(playerid, COLOR_YELLOW, "Este Nick jб existe, use outro."); fclose(hFile); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, " Servidor", " Nome Do Servidor\nDigite sua Senha para Registrar!!!", "Registrar", "Cancelar"); return 1; } new tmppass[64]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USE: /registrar [Senha]"); SendClientMessage(playerid, COLOR_YELLOW, "-==> Use Nome_Sobrenome ( Ex: eeee Ou rrrrl ) <==-"); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, " Servidor", " Nome Do Servidor", "Registrar", "Cancelar"); return 1; } strmid(tmppass, tmp, 0, strlen(cmdtext), 255); Encrypt(tmppass); OnPlayerRegister(playerid,tmppass); } return 1; }
SA-MP Dedicated Server ---------------------- v0.3x-R2, ©2005-2013 SA-MP Team [22:53:05] [22:53:05] Server Plugins [22:53:05] -------------- [22:53:05] Loading plugin: streamer [22:53:05] *** Streamer Plugin v2.6 by Incognito loaded *** [22:53:05] Loaded. [22:53:05] Loaded 1 plugins. [22:53:05] [22:53:05] Filterscripts [22:53:05] --------------- [22:53:05] Loading filterscript 'xD.amx'... [22:53:05] to load filterscript 'xD.amx'. [22:53:05] Loaded 1 filterscripts. [22:53:05] --------------------------------------------------------- [22:53:05] Server Ligado: [05/10/2013 22:53:05] [22:53:05] --------------------------------------------------------- [22:53:05] ----------------------------- [22:53:05] *** GM Iniciado *** [22:53:05] ----------------------------- [22:53:06] [t]: 22 Orgs Carregadas [22:53:06] [t]: 241 Casas Carregadas [22:53:06] [t]: 7 Empresas Carregadas [22:53:06] [t]: 130 Carros Carregados [22:53:06] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap() [22:53:06] [22:53:06] [22:53:06] - =Server = - [22:53:06] _____________________ [22:53:06] Servidor [22:53:06] [22:53:06] Number of vehicle models: 72 [22:53:13] Incoming connection: 25.182.55.122:58157 [22:53:57] Incoming connection: 25.182.55.122:63583 [22:53:57] [join] Samp_Samp has joined the server (0:25.182.55.122) [22:54:04] Samp_Samp has logged in.