02.07.2012, 19:21
Universal Yes, I do.
I added smo things in command and I have another problem. The dialog displayed with the text, but when get to owned house the line not displayed and stopped there. (sorry for my bad english)
Where's wrong ?
I added smo things in command and I have another problem. The dialog displayed with the text, but when get to owned house the line not displayed and stopped there. (sorry for my bad english)
Where's wrong ?
pawn Код:
if(strcmp(cmd, "/allhouses",true)==0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 4)
{
new strings[256];
new info[2000];
info[0] = '\0';
for(new i = 0; i < 30; i++)
{
if(HouseInfo[i][hOwned] == 0)
{
format(string,sizeof(string),"{00FF00}House ID %d: The House Is Free\n",i);
}
else
{
format(strings, sizeof(strings), "%s.ini",HouseInfo[i][hOwner]);
if(dini_Exists(strings))
{
new s = dini_Int(strings, "Second");
new m = dini_Int(strings, "Minute");
new h = dini_Int(strings, "Hour");
new d = dini_Int(strings, "Day");
new mo = dini_Int(strings, "Month");
new y = dini_Int(strings, "Year");
format(string,sizeof(string),"{FF8000}House ID %d: Owner: %s, Last login: %s%d.%s%d.%d and %s%d:%s%d:%s%d PM!\n",i,HouseInfo[i][hOwner],(d < 10) ? ("0") : (""), d, (mo < 10) ? ("0") : (""), mo, y, (h < 10) ? ("0") : (""), h, (m < 10) ? ("0") : (""), m, (s < 10) ? ("0") : (""), s);
}
}
strcat(info, string, sizeof(info));
ShowPlayerDialog(playerid,17,DIALOG_STYLE_MSGBOX,"{0080FF}ALL HOUSES:",info,"Other","Close");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You're not admin!");
}
return 1;
}