[Ajuda] Alguem sabe qual o problema ?
#1

Para ele verificar se a conta do player esta banido
Quote:

if(!response) Kick(playerid);
if(response){
new file[64];
GetPlayerName(playerid,file,sizeof(file));
format(file,sizeof(file),Banidos, file);
new uname[64], pname[64], motivo[64];
uname = DOF2_GetString (file, "Nick do Banido");
pname = DOF2_GetString (file, "Nick do Responsavel");
motivo = DOF2_GetString (file, "Motivo");
if(DOF2_FileExists(file)){
new string[128];
format (string, sizeof(string), "{FFFFFF}Nick: {FF0000}%s\n{FFFFFF}Responsavel: {FF0000}%s\n{FFFFFF}Motivo: {FF0000}%s", uname, pname, motivo);
}

Erro
Quote:

C:\Users\k2bi\Desktop\server\gamemodes\def.pwn(258 ) : error: 047: array sizes do not match, or destination array is too small
C:\Users\k2bi\Desktop\server\gamemodes\def.pwn(258 ) : error: 047: array sizes do not match, or destination array is too small
C:\Users\k2bi\Desktop\server\gamemodes\def.pwn(258 ) : error: 047: array sizes do not match, or destination array is too small

Reply
#2

Quote:
Originally Posted by k2bi
View Post
Para ele verificar se a conta do player esta banido

Erro
Aumenta o mъmero de celulas da sua array
Reply
#3

Troque

Code:
uname = DOF2_GetString (file, "Nick do Banido");
pname = DOF2_GetString (file, "Nick do Responsavel");
motivo = DOF2_GetString (file, "Motivo");
Por

Code:
format(uname, sizeof(uname ), "%s", DOF2_GetString (file, "Nick do Banido"));
format(pname, sizeof(pname ), "%s", DOF2_GetString (file, "Nick do Responsavel"));
format(motivo, sizeof(motivo ), "%s", DOF2_GetString (file, "Motivo"));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)