[POMOC]Kako da stavim dini na ovu komande u dialog.

Započeo GBL, Mart 29, 2011, 01:09:43 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

GBL

*

GM: gtarp

Opis problema: Hocu da napravi /application znam kako ide to vo dialog al neznam kako da uradim dini da se to zacuva vo /pvr/pr.ini ?

Dio skripte: //
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/application", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,1234,DIALOG_STYLE_INPUT,"Application: Step 1","What is Your Name?","Continue","Cancel");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1234)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF,"You Have Canceled The Application!");
        //Put ur dini here
        ShowPlayerDialog(playerid,1235,DIALOG_STYLE_INPUT,"Application: Step 2","Wich Car do You Want?","Continue","Cancel");
    }
    if(dialogid == 1235)
    {
        if(!response) return SendClientMessage(playerid,0xFFFFFFFF,"You Have Cancelled The Application!");
       //I dont feel like doing the saving part lol im too lazy
        ShowPlayerDialog(playerid,1236,DIALOG_STYLE_MSGBOX,"Application: Step 3","Do You Have A House","Yes", "No");
    }
    if(dialogid == 1236)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "No House");// DO whatever here if they dont have a house
        //I dun wanna do dini
        ShowPlayerDialog(playerid,1237,DIALOG_STYLE_MSGBOX,"Application: Step 4", "Do You Have Money?", "Yes", "No");
    }
    if(dialogid == 1237)
    {
        if(!response) return SendClientMessage(playerid,0xFFFFFFFF, "No Money"); // Do whatever if they dont have any money
        //No Dini for me
        ShowPlayerDialog(playerid,1238,DIALOG_STYLE_MSGBOX,"Application: Finished", "Thank You For Applying, \nAdministrators Will Review Your Application Shortly.","Okay", "");
    }
    return 1;
}


Slika ili video: // Nema slike.
Poslednja Izmena: Mart 29, 2011, 01:10:12 PRE PODNE od GBL