Show all owner house in dialog
#2

If I understand correctly it should look like this:
pawn Код:
//for this example I will use a command in zcmd
CMD:myhouse(playerid, params[])
{
    new house1 = User[playerid][USER_HOUSE1];//store the data in a variable
    new house2 = User[playerid][USER_HOUSE2];//same here
    new string[150], stats[150];//we need a string to display the text in

    format(string, sizeof string, ""chat" "COL_WHITE"House 1: %s\nHouse 2: %s", house1, house2);//the data stored in the variables will be displayed in the string
    format(stats, sizeof stats, "%s", string);
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX,"My house",string,"Ok","");
    //change all the variables to the ones you use from User[playerid] etc
    //also the dialog id!
    return 1;
}
Hope that helped you.
Reply


Messages In This Thread
Show all owner house in dialog - by Cerealguy - 27.12.2013, 01:48
Re: Show all owner house in dialog - by Voxel - 27.12.2013, 07:53
Respuesta: Show all owner house in dialog - by Cerealguy - 27.12.2013, 15:00
Re: Show all owner house in dialog - by Jefff - 27.12.2013, 15:24
Respuesta: Show all owner house in dialog - by Cerealguy - 27.12.2013, 16:37
Respuesta: Show all owner house in dialog - by Cerealguy - 27.12.2013, 21:29
Re: Show all owner house in dialog - by fordawinzz - 27.12.2013, 21:30
Respuesta: Show all owner house in dialog - by Cerealguy - 27.12.2013, 21:37
Re: Show all owner house in dialog - by Konstantinos - 27.12.2013, 22:13
Respuesta: Show all owner house in dialog - by Cerealguy - 27.12.2013, 22:35

Forum Jump:


Users browsing this thread: 2 Guest(s)