Help fix warnings
#4

Code:
function360(Float:arg0, Float:arg1, Float:arg2, Float:arg3)
{
	for(new var0 = 0; var0 < 200; var0++)
	{
		if(!glob0[var0][0])
		{
			glob0[var0][0] = 1;
	2427 -->    glob0[var0][1] = strval(arg0);
	2428-->	glob0[var0][2] = strval(arg1);
	2429-->		glob0[var0][3] = strval(arg2) - 0.6999;
			glob0[var0][4] = CreateObject(2899, arg0, arg1, arg2 - 0.8999, 0.0, 0.0, arg3 - 90, 0);
			return 1;
		}
	}
	return 0;
}
^^ According to the other reply. Although, I'd personally do this. (Assuming you dont want to use sscanf).

Code:
function360(Float:arg0, Float:arg1, Float:arg2, Float:arg3)
{
        arg0 = strval(arg0); arg1 = strval(arg1); arg2 = strval(arg2); arg3 = strval(arg3);
	for(new var0 = 0; var0 < 200; var0++)
	{
		if(!glob0[var0][0])
		{
			glob0[var0][0] = 1;
	2427 -->    glob0[var0][1] = arg0;
	2428-->	glob0[var0][2] = arg1;
	2429-->		glob0[var0][3] = arg2 - 0.6999;
			glob0[var0][4] = CreateObject(2899, arg0, arg1, arg2 - 0.8999, 0.0, 0.0, arg3 - 90, 0);
			return 1;
		}
	}
	return 0;
}
Another reason could be because of your glob0enum. It may not have 0,1,2,3 as float: variables.
Reply


Messages In This Thread
Help fix warnings - by karolissas - 26.08.2015, 12:32
Re: Help fix warnings - by Roberto80 - 26.08.2015, 12:52
Re: Help fix warnings - by karolissas - 26.08.2015, 13:04
Re: Help fix warnings - by BKarner - 26.08.2015, 13:47
Re: Help fix warnings - by Vince - 26.08.2015, 13:55
Re: Help fix warnings - by BKarner - 26.08.2015, 13:59

Forum Jump:


Users browsing this thread: 2 Guest(s)