18.04.2009, 14:09
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
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;
}


