sscanf warning problem
#1

Console: [17:01:48] sscanf warning: Strings without a length are deprecated, please add a destination size.

command:
Код:
new string[200],name[MAX_PLAYER_NAME];
    if(sscanf(params, "s",string)) return SendClientMessage(playerid, COLOR_ORANGE, "Hasznбlat: /r <Szцveg>");
    if(PlayerInfo[playerid][Frakcio] == 0) return SendClientMessage(playerid,COLOR_BLUE,"(( Nem vagy egyetlen frakciу tagja sem! ))");
    GetPlayerName(playerid,name,sizeof(name));
 	if(PlayerInfo[playerid][Frakcio] == RENDOR || PlayerInfo[playerid][Frakcio] == LRENDOR)
    {
	    for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(PlayerInfo[i][Frakcio] == 1)
			{
				new szoveg[200];
				format(szoveg, sizeof(szoveg), "[Rбdiу]*AP.PD*%s: %s",name,string);
				SendClientMessage(i,COLOR_LIGHTBLUE,szoveg);
		      }
		}
	}
	return 1;
}
Reply


Messages In This Thread
sscanf warning problem - by Slicebook - 12.06.2014, 14:46
AW: sscanf warning problem - by BiosMarcel - 12.06.2014, 14:49
Re: sscanf warning problem - by Threshold - 12.06.2014, 22:17
Re: sscanf warning problem - by kamiliuxliuxliux - 12.06.2014, 22:21

Forum Jump:


Users browsing this thread: 4 Guest(s)