Streamer, array, polygons.
#2

Код:
cmd(sel4, playerid, params[])
{

	new str2[256], iss;
	format(str2, sizeof(str2), "%f, %f %f, %f %f, %f %f, %f", PlayerInfo[playerid][pSelPos][0], PlayerInfo[playerid][pSelPos][1], PlayerInfo[playerid][pSelPos][2], PlayerInfo[playerid][pSelPos][3], PlayerInfo[playerid][pSelPos][4], PlayerInfo[playerid][pSelPos][5], PlayerInfo[playerid][pSelPos][6], PlayerInfo[playerid][pSelPos][7]); // Change str2 to PlayerInfo[playerid][pSelSrng], if i did understand correctly
	PlayerInfo[playerid][pSelSrng] = str2;
	printf("%s", PlayerInfo[playerid][pSelSrng]);
	iss = CreateDynamicPolygon(PlayerInfo[playerid][pSelSrng], -100.0, 100.0);
	new ipls = Streamer_CountItems(STREAMER_TYPE_AREA), ipl = GetDynamicPolygonPoints(iss, str2, sizeof(str2));
	//mysql_free_result();
	
		printf("areas - %d, %d points", ipls, ipl);
	
	return 1;
}
Look at the comment to the right of format.
Reply


Messages In This Thread
Streamer, array, polygons. - by SWET - 31.12.2014, 00:43
Re: Streamer, array, polygons. - by Cameltoe - 31.12.2014, 00:49
Re: Streamer, array, polygons. - by SWET - 31.12.2014, 00:56

Forum Jump:


Users browsing this thread: 1 Guest(s)