What is wrong here? :/
#1

pawn Код:
if(dialogid == 1244)
    {
        if(response == 0)
        {
            SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");}
            Kick(playerid);}
        if(response == 1)
        {
            SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");}
        return 1;
    }
Reply
#2

Quote:
Originally Posted by OleKristian95
Посмотреть сообщение
pawn Код:
if(dialogid == 1244)
    {
        if(response == 0)
        {
            SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");}
            Kick(playerid);}
        if(response == 1)
        {
            SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");}
        return 1;
    }
I've fixed for you.

pawn Код:
if(dialogid == 1244)
{
    if(response) // if response then he get the following message
    {
        SendClientMessage(playerid, 0xAA3333AA, "You have agreed our rules to play here, enjoy your stay"); // message of welcome
    }
    else // if he do not agree to our rules he get's the message you have to agree and get's kick.
    {
        SendClientMessage(playerid, 0xAA3333AA,"You have to agree with our rules to play here!");
                Kick(playerid);
    }// close the bracket here
    return 1;
 }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)