Double IFs in one command problem
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        if(!IsPlayerInRangeOfPoint(playerid,COORDZ))
        {
            SendClientMessage(playerid,-1,"You are not at the COORDZ");
            return 1;
        }
        if(PlayerInfo[playerid][pHourz] < 1)
        {
            SendClientMessage(playerid, COLOR-HERE, "  Text here.");
            return 1;
        }
        ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "DIALOG Stuff here");
        return 1;
    }
    return 0;
}
try like that.
Reply


Messages In This Thread
Double IFs in one command problem - by Deathh - 24.03.2012, 12:49
Re: Double IFs in one command problem - by Kaczmi - 24.03.2012, 12:52
Re: Double IFs in one command problem - by Gamer_Z - 24.03.2012, 12:52
Re: Double IFs in one command problem - by Deathh - 24.03.2012, 13:01
Re: Double IFs in one command problem - by Blunt - 24.03.2012, 13:13
Re: Double IFs in one command problem - by Deathh - 24.03.2012, 13:21
Re: Double IFs in one command problem - by Gamer_Z - 24.03.2012, 23:54
Re: Double IFs in one command problem - by The DeLuca - 25.03.2012, 02:27
Re: Double IFs in one command problem - by Steven82 - 25.03.2012, 02:43

Forum Jump:


Users browsing this thread: 1 Guest(s)