28.03.2011, 19:16
arrumei o comando onde dizia Cor eu coloquei COLOR_RED e onde dizia string eu coloquei stringl!
mas agora ta dando este erro:
aqui estб o codigo:
mas agora ta dando este erro:
Код:
admin6levelm.pwn(1086) : error 047: array sizes do not match, or destination array is too small
pawn Код:
if(strcmp(cmd, "/bnome", true) == 0)
{
if ( !IsPlayerAdmin( playerid ) )
return SendClientMessage(playerid, COLOR_RED, "Comando apenas para Administradores!");
new
str[128],
stringl[128],
File:Arq;
str = strtok(cmdtext, idx); //linha 1086 - Linha do Erro
if(!strlen(str))
return SendClientMessage(playerid, COLOR_RED, "Use /bnome [Nome]");
format(stringl, sizeof(stringl), "Nome '%s' Adcionado a lista de nomes proibidos!",str );
SendClientMessage(playerid, COLOR_RED, stringl);
Arq = fopen( "Nomes.cfg" ,io_append );
format( stringl,sizeof(stringl),"%s\r\n",str);
fwrite(Arq,stringl);
return fclose(Arq);
}