tiny help
#2

Quote:
Originally Posted by Anak
Посмотреть сообщение
hello please help

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response) 
        {
            
            if(listitem == 0) 
            {
                 SendClientMessage(playerid,red,"[-------No Death Matching--------------]");
                 SendClientMessage(playerid,red,"Death Matching is Not Allowed In the Server.");
                SendClientMessage(playerid,red,"Shooting A Player's Vehicle is considered as Death Matching.");
                SendClientMessage(playerid,red,"You Can DM in DM Locations.");}
                SendClientMessage(playerid,red,"Dont Target Players.");}
                SendClientMessage(playerid,red,"Warrent - Most Wanted Player Can shoot Cop Chasing you.");
                SendClientMessage(playerid,red,"Dont Broke any one Rule to Protect your Friend/Brother/Team Mate");
                SendClientMessage(playerid,red,"---------------------- /Rules To see More --------------------");
             }
            if(listitem == 1)
            {
                SendClientMessage(playerid,red,"---------------------- /Rules To see More --------------------"); 
            }
            if(listitem == 2) 
            {
                SendClientMessage(playerid,red,"---------------------- /Rules To see More --------------------"); 
            }
		}
        return 1; 
    }

    return 0; 
}
then errors
Код:
D:\waterpark\testnew.pwn(45) : warning 217: loose indentation
D:\waterpark\testnew.pwn(47) : warning 217: loose indentation
D:\waterpark\testnew.pwn(48) : warning 217: loose indentation
D:\waterpark\testnew.pwn(52) : warning 217: loose indentation
D:\waterpark\testnew.pwn(61) : error 010: invalid function or declaration
D:\waterpark\testnew.pwn(64) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
thanks in advance
Try

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {

            if(listitem == 0)
            {
                SendClientMessage(playerid,red,"[-------No Death Matching--------------]");
                SendClientMessage(playerid,red,"Death Matching is Not Allowed In the Server.");
                SendClientMessage(playerid,red,"Shooting A Player's Vehicle is considered as Death Matching.");
                SendClientMessage(playerid,red,"You Can DM in DM Locations.");}
                SendClientMessage(playerid,red,"Dont Target Players.");}
                SendClientMessage(playerid,red,"Warrent - Most Wanted Player Can shoot Cop Chasing you.");
                SendClientMessage(playerid,red,"Dont Broke any one Rule to Protect your Friend/Brother/Team Mate");
                SendClientMessage(playerid,red,"---------------------- /Rules To see More --------------------");
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid,red,"---------------------- /Rules To see More --------------------");
            }
            if(listitem == 2)
            {
                SendClientMessage(playerid,red,"---------------------- /Rules To see More --------------------");
            }
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
tiny help - by Anak - 29.09.2012, 14:11
Re: tiny help - by .v - 29.09.2012, 14:13
Re: tiny help - by Necro[ABK] - 29.09.2012, 14:14
Re: tiny help - by gtakillerIV - 29.09.2012, 14:15
Re: tiny help - by Anak - 29.09.2012, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)