17.12.2017, 10:04
I will try to explain your login here.
If your player has score less then 100, send TEST 1
if not (else) send LOW SCORE
After that (Its another if, you didnt chain it in previous) if player score is less then 1500 send TEST 2
One way to do it would be:
Check if player has score greater then 1500
Send test 2 message
if not, check if his score is greater then 100,
if it is send test 1 message
and if its not higher then 1500 and 100, only then send low score message.
If your player has score less then 100, send TEST 1
if not (else) send LOW SCORE
After that (Its another if, you didnt chain it in previous) if player score is less then 1500 send TEST 2
One way to do it would be:
Check if player has score greater then 1500
Send test 2 message
if not, check if his score is greater then 100,
if it is send test 1 message
and if its not higher then 1500 and 100, only then send low score message.
pawn Код:
if(GetPlayerScore(playerid) > 1500)
{
SendClientMessage(playerid, 0xFF0000FF, "TEST 2 Sucess");
}
else if(GetPlayerScore(playerid) > 100)
{
SendClientMessage(playerid, 0xFF0000FF, "TEST 1");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "LOW SCORE");
}
return 1;