02.04.2017, 18:45
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",""); |
PHP Code:
CMD:skills(playerid, params[])
{
new string[48], 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)",levels,51 - level);
ShowPlayerDialog(playerid,303,DIALOG_STYLE_LIST,"Jobs Level",string,"Close","");
}
else
new level = PlayerInfo[playerid][pTruckSkill], string[50];
if(level >= 0 && level <= 50) levels = 1;
{
format(string,sizeof(string),"Trucker Level: %d - (%d more times to level up)",levels,51 - level);
ShowPlayerDialog(playerid,303,DIALOG_STYLE_LIST,"Jobs Level",string,"Close","");
}
return 1;
}