Count how many bullets fired.
#8

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
Edited
Still not working.

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
new pAmmo[MAX_PLAYERS][13],
    pWeapon[MAX_PLAYERS][13]; // << It's a semicolon, change to comma ','
    pTotalFired[MAX_PLAYERS];
And is the error from another line? If so, post it.
Yeah, I noticed this. Already fixed it :P

The line the error is coming from is:
Код:
CMD:stats(playerid, params[])
{
	new wstring[238];
	new health = pInfo[playerid][pHealth];
	new armour = pInfo[playerid][pArmour];
	new shots = pTotalFired[playerid];
	new ammo = pAmmo[playerid];

	
	format(wstring, sizeof(wstring), "Health:[%d] Armour:[%d] Shots[%d] Ammo:[%d]",health,armour,shots,ammo);
	SendClientMessage(playerid,COLOR_WHITE, wstring);
	return 1;
}
Reply


Messages In This Thread
Count how many bullets fired. - by Slepur - 06.08.2013, 08:30
Re: Count how many bullets fired. - by Slepur - 06.08.2013, 11:00
Re: Count how many bullets fired. - by Vanter - 06.08.2013, 11:13
Re: Count how many bullets fired. - by RedFusion - 06.08.2013, 11:31
Re: Count how many bullets fired. - by Slepur - 06.08.2013, 11:42
Re: Count how many bullets fired. - by RedFusion - 06.08.2013, 11:46
Re: Count how many bullets fired. - by Konstantinos - 06.08.2013, 11:48
Re: Count how many bullets fired. - by Slepur - 06.08.2013, 11:52
Re: Count how many bullets fired. - by Konstantinos - 06.08.2013, 11:56
Re: Count how many bullets fired. - by Slepur - 06.08.2013, 12:03

Forum Jump:


Users browsing this thread: 2 Guest(s)