unreachable code
#4

It can be simply done like this:

PHP код:
CMD:gotojob(playerid)
{
    if(
gPlayerLogged[playerid] == 0) return SCM(playeridCOLOR_LIGHTRED"You need to log in first.");
    if(
PlayerInfo[playerid][pAdmin] == 0) return SCM(playeridCOLOR_LIGHTRED"Nu ai acces la aceasta comanda.");
    
ShowPlayerDialog(playeridDIALOG_GOTOJOBDIALOG_STYLE_LIST,"Gotojob""Detective\nDrugs
    Dealer\nPizza Boy\nBus Driver\nArms Dealer\nGarbageman\nFisherman\nTrucker\nFarmer"
);
    return 
1;

Reply


Messages In This Thread
unreachable code - by enzulikeS - 03.05.2018, 19:18
Re: unreachable code - by git - 03.05.2018, 19:22
Re: unreachable code - by enzulikeS - 03.05.2018, 19:24
Re: unreachable code - by kovac - 03.05.2018, 20:27
Re: unreachable code - by SeanDenZYR - 04.05.2018, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)