Count problem:S
#1

Heey all,

I made a donut pickup system.
But when i pickup the donut is says in gametext donut 0 out of 50.
This is the code:
Код:
	new string[128];
	format(string,sizeof(string),"Donut %d out of 50!",donutcount[playerid]);
	GameTextForPlayer(playerid,string,5000,5);
	
	if(pickupid==donut1)
	{
		if(istokendonut1[playerid]==1)
		{
		istokendonut1[playerid]=0;
		GivePlayerMoney(playerid,1000);
		donutcount[playerid]++;
		}
		if(istokendonut1[playerid]==0)
		{
		SendClientMessage(playerid,COLOR_RED,"You already found this donut!");
		}
	}
	if(pickupid==donut2)
	{
		if(istokendonut2[playerid]==1)
		{
		istokendonut2[playerid]=0;
		GivePlayerMoney(playerid,1000);
		donutcount[playerid]++;
		}
		if(istokendonut2[playerid]==0)
		{
		SendClientMessage(playerid,COLOR_RED,"You already found this donut!");
		}
	}
How can i fix this?

Thanks Admigo.
Reply


Messages In This Thread
Count problem:S - by Admigo - 31.05.2011, 21:06
Re: Count problem:S - by Admigo - 31.05.2011, 21:51
Re: Count problem:S - by Admigo - 31.05.2011, 21:58
Re: Count problem:S - by Admigo - 31.05.2011, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)