02.04.2017, 18:27
Quote:
Code:
new string[60],new level = PlayerInfo[playerid][pDetSkill], new levels; if(level >= 0 && level <= 50 ) levels = 1; // this will show that players detective level is 1 format(string,sizeof(string),"Detective Level: %d - (%d more times to level up)\nLawyer Level:%d - (%d more times to level up)",levels,51 - level); ShowPlayerDialog(playerid,303,DIALOG_STYLE_MSGBOX,"Jobs Level",string,"Close",""); |
This is the cmd I created
PHP Code:
CMD:skills(playerid, params[])
{
new string, level = PlayerInfo[playerid][pDetSkill], levels;
if(level >= 0 && level <= 50 ) levels = 1; // this will show that players detective level is 1
{
format(string,sizeof(string),"Detective Level: %d - (%d more times to level up)\nLawyer Level:%d - (%d more times to level up)",levels,51 - level);
ShowPlayerDialog(playerid,303,DIALOG_STYLE_MSGBOX,"Jobs Level",string,"Close","");
}
return 1;
}