PDA

View Full Version : help dialog problem


Slicebook
03/04/2014, 07:54 AM
how to fix?
error 017: undefined symbol "playerid"
ShowPlayerDialog(playerid, DIALOG_HOUSEM, DIALOG_STYLE_LIST, "Ház","Belép\nInformáció", "OK", "Mégsem");

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][Van] != 1) continue;

if(PlayerToPoint(3.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
>>>> error playerid ShowPlayerDialog(playerid, DIALOG_HOUSEM, DIALOG_STYLE_LIST, "Ház","Belép\nInformáció", "OK", "Mégsem");
else
format(string, sizeof(string), "~w~Ice utca %d.~n~Tulaj:%s~n~Berelheto:%dFT~n~Szobaberles: /rentroom",h,HouseInfo[h][hOwner],HouseInfo[h][hRent]);
GameTextForPlayer(i, string, CUSTOMPICKUPSTIME, 3);
oks = 1;
break;
}
else
{
if(HouseInfo[h][hCsak] != 1)
format(string, sizeof(string), "~w~Ice utca %d.~n~Ara:~g~%dFT~n~~w~Haz megvetele:/buyhouse",h,HouseInfo[h][hValue]);
else
format(string, sizeof(string), "~w~Ice utca %d.~n~Ara:~g~%dFT~n~~w~Haz megvetele:/buyhouse~n~Csak:%s",h,HouseInfo[h][hValue], HouseInfo[h][hCsakneki]);
GameTextForPlayer(i, string, CUSTOMPICKUPSTIME, 3);
oks = 1;
break;
}
}
}
if(oks) continue;

RenovanZ
03/04/2014, 11:15 AM
Change "playerid" to "i"

Slicebook
03/04/2014, 02:03 PM
thanks!! +