tiny help
#1

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
Reply
#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
#3

Код:
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; 
}
here, not gonna bother to explain myself

nope he didnt delete the } at the end of the lines

you guys missing that small detail above and below me

look at the lines with "Dont Target Players" at the end of that is a } and theres 1 more 2
Reply
#4

EDIT: LOL, guys are faster than me :P.
Reply
#5

OMG I UNDERSTAND THANKS >>>>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)