Need HELP with My stat script
#1

Hello can eyone tell me whats wrong?
This part work all time if player even have PlayerInfo[playerid][pStrenghtPoints] = 0; it set PlayerInfo[playerid][pStrenght] += 1;
______________
It should work like if player have 100 pStrenghtPoints it will set [pStrenght] += 1; and reset to 0 pStrenghtPoints

Код:
if (PlayerInfo[playerid][pStrenghtPoints] <= 100)
	  {
	  PlayerInfo[playerid][pStrenghtPoints] = 0;
	  PlayerInfo[playerid][pStrenght] += 1;
	  SendClientMessage(playerid, COLOR_GREEN,"Strenght upgraded");
	  }
	  else
		{
		SendClientMessage(playerid, COLOR_GRAD6, "Not enough for strenght.");
		return 1;
		}
Reply


Messages In This Thread
Need HELP with My stat script - by vovz - 18.04.2009, 14:09
Re: Need HELP with My stat script - by Soeren - 18.04.2009, 15:13
Re: Need HELP with My stat script - by vovz - 19.04.2009, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)