02.07.2012, 18:16
Result is Unknown Command.
Where's wrong ?
Where's wrong ?
pawn Код:
if(strcmp(cmd, "/allhouses",true)==0)
{
new info[2000];
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(string,sizeof(string),"{FF8000}House ID %d: Owned by: %s\n",i,HouseInfo[i][hOwner]);
}
strcat(info, string, sizeof(info));
ShowPlayerDialog(playerid,17,DIALOG_STYLE_MSGBOX,"{0080FF}ALL HOUSES:",info,"Other","Close");
}
return 1;
}