SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (/showthread.php?tid=504560)



warning 202: number of arguments does not match definition - Slicebook - 04.04.2014

D:\Mбtй kйpei\RPG\26febrmof\icerpg.pwn(894 : warning 202: number of arguments does not match definition
D:\Mбtй kйpei\RPG\26febrmof\icerpg.pwn(894 : warning 202: number of arguments does not match definition

Код:
ShowPlayerDialog(i, DIALOG_HOUSEM, DIALOG_STYLE_LIST, "Ice utca %d | Tulaj:(%d)","Belйp\nLabor\nInformбciу", "OK", "Mйgsem",h,HouseInfo[h][hOwner]);
full code
Код:
	for(new h = 0; h < sizeof(HouseInfo); h++)
			{
				if(HouseInfo[h][Van] != 1) continue;

				if(PlayerToPoint(1.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
				{
					if(HouseInfo[h][hOwned] == 1)
					{
						if(HouseInfo[h][hRentabil] == 0)
							ShowPlayerDialog(i, DIALOG_HOUSEM, DIALOG_STYLE_LIST, "Ice utca %d | Tulaj:(%d)","Belйp\nLabor\nInformбciу", "OK", "Mйgsem",h,HouseInfo[h][hOwner]);
						oks = 1;
						break;
					}



Re: warning 202: number of arguments does not match definition - Dokins - 04.04.2014

What's the define for
pawn Код:
HouseInfo[h][hOwner]



Re: warning 202: number of arguments does not match definition - Vince - 04.04.2014

As with every other kind of output, this too needs to be formatted first.


Re: warning 202: number of arguments does not match definition - Dokins - 04.04.2014

What Vince Said, + I thought that HouseOwner was a MAX_PLAYER_NAME, SO I was going to add a format etc for you.