29.04.2017, 21:04
Code:
CMD:skill(playerid, params[]) { new DetectiveLevel = PlayerInfo[playerid][pDetSkill], NextLevelDET[48]; if(DetectiveLevel >= 0 && DetectiveLevel <= 50) { format(CurrentLevelDET, sizeof(CurrentLevelDET), "1"); format(NextLevelDET, sizeof(NextLevelDET), "You need to find %d more people to level up.",51 - DetectiveLevel);} else if(DetectiveLevel >= 51 && DetectiveLevel <= 100) { format(CurrentLevelDET, sizeof(CurrentLevelDET), "2"); format(NextLevelDET, sizeof(NextLevelDET), "You need to find %d more people to level up.", 101 - DetectiveLevel); } else if(DetectiveLevel >= 101 && DetectiveLevel <= 200) { format(CurrentLevelDET, sizeof(CurrentLevelDET), "3"); format(NextLevelDET, sizeof(NextLevelDET), "You need to find %d more people to level up.", 201 - DetectiveLevel); } else if(DetectiveLevel >= 201 && DetectiveLevel <= 400) { format(CurrentLevelDET, sizeof(CurrentLevelDET), "4"); format(NextLevelDET, sizeof(NextLevelDET), "You need to find %d more people to level up.", 401 - DetectiveLevel); } else if(DetectiveLevel >= 401) { format(CurrentLevelDET, sizeof(CurrentLevelDET), "5"); } format(DialogInfo, sizeof(DialogInfo), "Detective Level:%d - Find %d more people to level up!\nNEXT ONE!\nAND THE NEXT ONE!\n", CurrentLevelDET, NextLevelDET) ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Levels", DialogInfo,"Select", "Cancel"); return 1; }