17.12.2017, 09:28
Ok guys, this is just a simple template I created to understand, but when I tried it out for testing, it didn't come to my expectation. If I can understand this, I can advance. Well, I use a simple cmd right?, like etc. /test and I have a check if(GetPlayerScore) and like it should display msgs due to the player's score, well it works, but suppose If I have score 2000, it displays both messages, which I only want the 1500 score message to display, but also the 100 score message is displayed along, any ideas?
Код:
if(!strcmp(cmdtext, "/test", true)) { if(GetPlayerScore(playerid) < 100) { SendClientMessage(playerid, 0xFF0000FF, "TEST 1"); } else { SendClientMessage(playerid, 0xFF0000FF, "LOW SCORE"); } if(GetPlayerScore(playerid) < 1500) { SendClientMessage(playerid, 0xFF0000FF, "TEST 2 Sucess"); } return 1;