[Ajuda] Erro sscanf
#1

Bem , o comando /cv estб dando esse erro :
Код:
sscanf warning: Strings without a length are deprecated, please add a destination size.
Comando :

pawn Код:
CMD:cv(playerid, params[])
   {
   new nome[MAX_PLAYER_NAME], string[128], niveladm[128], texto;
   if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COLOR_GREY, "Use : /cv [texto].");
   GetPlayerName(playerid, nome, sizeof(nome));
   if(PlayerInfo[playerid][pAdmin] == 1) return niveladm = "Moderador em Teste";
   if(PlayerInfo[playerid][pAdmin] == 2) return niveladm = "Moderador";
   if(PlayerInfo[playerid][pAdmin] == 3) return niveladm = "Fundador";
   format(string, sizeof(string), "{FF0000}[%s] {FFFFFF}%s : {066363}%s", niveladm, nome, texto);
   SendClientMessageToAll(COLOR_RED, string);
   return 1;
   }
Jб tentei meter s[128] e new (...)texto[128]; mas nгo resultou .
Dando esse erro , a mensagem nгo й enviada , qual pode ser o problema ?
Reply


Messages In This Thread
Erro sscanf - by Tugamars - 27.12.2013, 23:35
Re: Erro sscanf - by unamed - 27.12.2013, 23:36
Re: Erro sscanf - by Tugamars - 27.12.2013, 23:39
Re: Erro sscanf - by PT - 27.12.2013, 23:44
Re: Erro sscanf - by Juniiro3 - 28.12.2013, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)