SA-MP Forums Archive
help dialog problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help dialog problem (/showthread.php?tid=504267)



help dialog problem - Slicebook - 03.04.2014

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;



Re: help dialog problem - RenovanZ - 03.04.2014

Change "playerid" to "i"


Re: help dialog problem - Slicebook - 03.04.2014

thanks!! +