Not setting a file variable to 0.
#4

i suspect the return will abort your subroutine before you get the reward, and maybe not even the text will showup, coz its behind the return...
try that concept for just that case, if it works, modify the remaining too
Code:
case 0:
{
if(PlayerInfo[playerid][Deathstreak] == 2)
{
	SendClientMessage(playerid, COLOR_WHITE, "You have been given some brass knuckles as a death reward.");
	PlayerInfo[playerid][Deathstreak] = 0;
	return GivePlayerWeapon(playerid, 1, 1);
}
Reply


Messages In This Thread
Not setting a file variable to 0. - by jameskmonger - 13.01.2010, 20:20
Re: Not setting a file variable to 0. - by Grim_ - 13.01.2010, 20:21
Re: Not setting a file variable to 0. - by jameskmonger - 13.01.2010, 20:25
Re: Not setting a file variable to 0. - by Babul - 13.01.2010, 20:36
Re: Not setting a file variable to 0. - by jameskmonger - 14.01.2010, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)