Help Please
#5

Quote:
Originally Posted by LazzyBoy
View Post
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","");
i've done this only for Detective to show you a way to make it in dialog but make other by yourself and you will understand how it is done, i havent tested the code but it should work.
Quote:
Originally Posted by LazzyBoy
View Post
Show the errors please.
I have Fixed Please tell me Now if the Way This Is Good
PHP Code:
CMD:skills(playeridparams[])
{
        new 
string[48], level PlayerInfo[playerid][pDetSkill], levels;
        if(
level >= && 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 >= && level <= 50levels 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;
    } 
Reply


Messages In This Thread
Help Please - by Bojaa - 02.04.2017, 17:44
Re: Help Please - by LazzyBoy - 02.04.2017, 18:13
Re: Help Please - by Bojaa - 02.04.2017, 18:27
Re: Help Please - by LazzyBoy - 02.04.2017, 18:41
Re: Help Please - by Bojaa - 02.04.2017, 18:45
Re: Help Please - by LazzyBoy - 02.04.2017, 18:56
Re: Help Please - by Bojaa - 02.04.2017, 19:12
Re: Help Please - by GangstaSunny. - 02.04.2017, 20:05
Re: Help Please - by Bojaa - 03.04.2017, 10:41
Re: Help Please - by coool - 03.04.2017, 11:33

Forum Jump:


Users browsing this thread: 3 Guest(s)