dcmd /wanted command.
#8

i forgot to modify if-statement line to work w/o using PVariables, fixed it now.
please replace the sorting part with the (workingone) provided here:
Код:
	//sorting
	new ArrayWantedPlayersIDSorted[MAX_PLAYERS];
	new count;
//	for(new level=6;level>1;level--)
	for(new level=1;level<6;level++)
	{
		for(new w=0;w<wantedcount;w++)
		{
			if(GetPlayerWantedLevel(ArrayWantedPlayersID[w])==level)
			{
				ArrayWantedPlayersIDSorted[count]=ArrayWantedPlayersID[w];
				count++;
			}
		}
	}
	for(new w=0;w<wantedcount;w++)
	{
		ArrayWantedPlayersID[w]=ArrayWantedPlayersIDSorted[w];
	}
Reply


Messages In This Thread
dcmd /wanted command. - by Naxix - 19.04.2010, 13:00
Re: dcmd /wanted command. - by Babul - 19.04.2010, 13:21
Re: dcmd /wanted command. - by Naxix - 19.04.2010, 15:07
Re: dcmd /wanted command. - by aircombat - 19.04.2010, 16:32
Re: dcmd /wanted command. - by Naxix - 19.04.2010, 16:33
Re: dcmd /wanted command. - by Torran - 19.04.2010, 17:44
Re: dcmd /wanted command. - by Naxix - 19.04.2010, 17:44
Re: dcmd /wanted command. - by Babul - 20.04.2010, 06:50

Forum Jump:


Users browsing this thread: 1 Guest(s)