Quote:
Originally Posted by Felipealves
PHP код:
if(dialogid == 10102)
{
if(response)
{
new idc = GetPVarInt(playerid,"portaofrente");
if(strcmp(inputtext, FilePortao(idc), true) == 0){
if(PortaoOcupado[idc] == 1) return SendClientMessage(playerid, -1,"Portгo em movimento ! Aguarde atй ele parar.");
SistemaAbrirPortao(playerid, idc);
}else{
ShowPlayerDialog(playerid,10102, DIALOG_STYLE_INPUT, "Senha Portao", "{ff0000}[ERRO] {ffffff}Senha Incorreta !\nDigite a Senha deste portao:", "Ok", "Cancelar");
}
}
return 1;
}
// fim do GM
PHP код:
static FilePortao(idc){
new file[64];
format(file, sizeof(file), "ArquivosBPS/Portoes/Portao_%d.ini", idc);
return DOF2_SetString(file, "PortaoSenha");
}
|
PHP код:
C:\Users\igorm\Desktop\Brasil \gamemodes\bps.pwn(14007) : error 035: argument type mismatch (argument 2)
C:\Users\igorm\Desktop\Brasil \gamemodes\bps.pwn(95892) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
if(strcmp(inputtext, FilePortao(idc), true) == 0){ //linha 14007
return DOF2_SetString(file, "PortaoSenha"); // linha 95892
fico sу esses '-'