SA-MP Forums Archive
Error While Compiling. - 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: Error While Compiling. (/showthread.php?tid=523325)



Error While Compiling. - 0B3Y - 01.07.2014

Hi guys... I got a problem while compiling my pwn... Here's the error
Код:
GGRP.pwn(761) : warning 202: number of arguments does not match definition
What does that mean? And how can i fix that? This is the line 760 - 769
Код:
}
  		gSelectionItems[playerid][x] = CreateModelPreviewTextDraw(playerid, gItemList[itemat], BaseX, BaseY, SPRITE_DIM_X, SPRITE_DIM_Y);
  		gSelectionItemsTag[playerid][x] = gItemList[itemat];
		BaseX += SPRITE_DIM_X + 1.0; // move on the X for the next sprite
		linetracker++;
		if(linetracker == ITEMS_PER_LINE) linetracker = 0;
		itemat++;
		x++;
	}
}
I think thats all... Thanks guys


Re: Error While Compiling. - ikey07 - 01.07.2014

I believe CreateModelPreviewTextDraw is a custom function, check which arguments it request, like CreateModelPreviewTextDraw(arg1,arg2...


Re: Error While Compiling. - 0B3Y - 02.07.2014

Its fixed.. Now i have another problem on line 723...
Код:
warning 215: expression has no effect
Line 723 is
Код:
PlayerTextDrawSetPreviewModel(playerid, txtPlayerSprite, modelindex);
Anyone can help me with this? Thanks