SA-MP Forums Archive
error - 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 (/showthread.php?tid=498688)



error - ancezas - 04.03.2014

im geting array from mysql like this:
pawn Код:
mysql_get_field( "uniforma", specofke );
then try to using it like this:
pawn Код:
TextDrawSetPreviewModel( DV8[ playerid ], specofke );
and it gives me error: error 035: argument type mismatch (argument 2)
BTW
pawn Код:
new specofke[ 10 ];



Re: error - Konstantinos - 04.03.2014

https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel

2nd argument: modelindex -> The GTA SA or SA:MP model ID to display.

You use an array which is not correct. Is specofke stores the modelid then use:
pawn Код:
TextDrawSetPreviewModel(DV8[playerid], strval(specofke));