Quote:
Originally Posted by Bojaa
Like This?
PHP Code:
CMD:skills(playerid, params[])
{
new string[1041];
new level = PlayerInfo[playerid][pDetSkill];
new levell = PlayerInfo[playerid][pLawSkill];
new levelt = PlayerInfo[playerid][pTruckSkill];
if(level >= 0 && level <= 50) {
format(string, sizeof(string), "Detective Level 1: You need %d\nLawyer Level 1: You need %d\nTrucker level 1:You Need %d",51 - level,51 - levell,51 - levelt);
}
else if(level >= 51 && level <= 100) {
format(string, sizeof(string), "Detective Level 2: You need %d\nLawyer Level 2: You need %d\nTrucker level 1:You Need %d",101 - level,101 - levell,101 - levelt);
}
ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "jobs", string, "close", "");
}
|
This Worked But it dont show the second level 2 How it be fixed?
See trucker level it show -2