19.06.2012, 11:43
Hey,
I have a Playinghours system, I tried to assign Scores to an playinghour.
But It gives me (playinghours: 62) score 1, but it should give me 5...
Can someone look at it
Its under: OnPlayerConnect
I have a Playinghours system, I tried to assign Scores to an playinghour.
But It gives me (playinghours: 62) score 1, but it should give me 5...
Can someone look at it
pawn Код:
if(Player[playerid][PlayingHours] < 1)
{
SetPlayerScore(playerid, 1);
}
else if(Player[playerid][PlayingHours] >= 1 && Player[playerid][PlayingHours] < 8)
{
SetPlayerScore(playerid, 2);
}
else if(Player[playerid][PlayingHours] >= 8 && Player[playerid][PlayingHours] < 20)
{
SetPlayerScore(playerid, 3);
}
else if(Player[playerid][PlayingHours] >= 20 && Player[playerid][PlayingHours] < 40)
{
SetPlayerScore(playerid, 4);
}
else if(Player[playerid][PlayingHours] >= 40 && Player[playerid][PlayingHours] < 60)
{
SetPlayerScore(playerid, 5);
}
else if(Player[playerid][PlayingHours] >= 60 && Player[playerid][PlayingHours] < 90)
{
SetPlayerScore(playerid, 6);
}
else if(Player[playerid][PlayingHours] >= 90 && Player[playerid][PlayingHours] < 110)
{
SetPlayerScore(playerid, 7);
}
else if(Player[playerid][PlayingHours] >= 110 && Player[playerid][PlayingHours] < 130)
{
SetPlayerScore(playerid, 8);
}
else if(Player[playerid][PlayingHours] >= 130 && Player[playerid][PlayingHours] < 150)
{
SetPlayerScore(playerid, 9);
}
else if(Player[playerid][PlayingHours] >= 150 && Player[playerid][PlayingHours] < 170)
{
SetPlayerScore(playerid, 10);
}
else if(Player[playerid][PlayingHours] >= 170 && Player[playerid][PlayingHours] < 190)
{
SetPlayerScore(playerid, 11);
}
else if(Player[playerid][PlayingHours] >= 190 && Player[playerid][PlayingHours] < 210)
{
SetPlayerScore(playerid, 12);
}
else if(Player[playerid][PlayingHours] >= 210 && Player[playerid][PlayingHours] < 230)
{
SetPlayerScore(playerid, 13);
}
else if(Player[playerid][PlayingHours] >= 230 && Player[playerid][PlayingHours] < 250)
{
SetPlayerScore(playerid, 14);
}
else if(Player[playerid][PlayingHours] >= 250 && Player[playerid][PlayingHours] < 270)
{
SetPlayerScore(playerid, 15);
}
else if(Player[playerid][PlayingHours] >= 270 && Player[playerid][PlayingHours] < 310)
{
SetPlayerScore(playerid, 16);
}
else if(Player[playerid][PlayingHours] >= 310 && Player[playerid][PlayingHours] < 350)
{
SetPlayerScore(playerid, 17);
}
else if(Player[playerid][PlayingHours] >= 350 && Player[playerid][PlayingHours] < 390)
{
SetPlayerScore(playerid, 18);
}
else if(Player[playerid][PlayingHours] >= 390 && Player[playerid][PlayingHours] < 430)
{
SetPlayerScore(playerid, 19);
}
else if(Player[playerid][PlayingHours] >= 430 && Player[playerid][PlayingHours] < 460)
{
SetPlayerScore(playerid, 20);
}
else if(Player[playerid][PlayingHours] >= 460 && Player[playerid][PlayingHours] < 510)
{
SetPlayerScore(playerid, 21);
}
else if(Player[playerid][PlayingHours] >= 510 && Player[playerid][PlayingHours] < 560)
{
SetPlayerScore(playerid, 22);
}
else if(Player[playerid][PlayingHours] >= 560 && Player[playerid][PlayingHours] < 610)
{
SetPlayerScore(playerid, 23);
}
else if(Player[playerid][PlayingHours] >= 610 && Player[playerid][PlayingHours] < 660)
{
SetPlayerScore(playerid, 24);
}
else if(Player[playerid][PlayingHours] >= 660 && Player[playerid][PlayingHours] < 710)
{
SetPlayerScore(playerid, 25);
}
else if(Player[playerid][PlayingHours] >= 710 && Player[playerid][PlayingHours] < 760)
{
SetPlayerScore(playerid, 26);
}
else if(Player[playerid][PlayingHours] >= 760 && Player[playerid][PlayingHours] < 810)
{
SetPlayerScore(playerid, 27);
}
else if(Player[playerid][PlayingHours] >= 810 && Player[playerid][PlayingHours] < 860)
{
SetPlayerScore(playerid, 28);
}
else if(Player[playerid][PlayingHours] >= 960 && Player[playerid][PlayingHours] < 910)
{
SetPlayerScore(playerid, 29);
}
else if(Player[playerid][PlayingHours] >= 910 && Player[playerid][PlayingHours] < 960)
{
SetPlayerScore(playerid, 30);
}
else if(Player[playerid][PlayingHours] >= 960 && Player[playerid][PlayingHours] < 1100)
{
SetPlayerScore(playerid, 31);
}