SA-MP Forums Archive
tag mismatc - 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: tag mismatc (/showthread.php?tid=640538)



tag mismatc [resolved] - BadJih - 04.09.2017

(27601) : warning 213: tag mismatc

line 27601 :
PHP код:
    nwbipickup CreateDynamicPickup(124221716.3733, -1870.592913.5662327.1595); // test one 



Re: tag mismatc - Hansrutger - 04.09.2017

Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_PICKUP_SD, areaid = -1, priority = 0)
Your 6th argument (counting from 1) is a float while it should be an integer. There's no angle with pickups as they spin around 360 degrees over and over again.


Re: tag mismatc - BadJih - 04.09.2017

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_PICKUP_SD, areaid = -1, priority = 0)
Your 6th argument (counting from 1) is a float while it should be an integer. There's no angle with pickups as they spin around 360 degrees over and over again.
like this ? 1716.3733, -1870.5929, 13.5662, -1


Re: tag mismatc - ISmokezU - 04.09.2017

PHP код:
 nwbipickup CreateDynamicPickup(124221716.3733, -1870.592913.5662327.1595, -1, -1, -160.0); 



Re: tag mismatc - Hansrutger - 04.09.2017

Well with this in particular one you don't even have to write -1 as that is the default number for that argument.


Re: tag mismatc - Paulice - 04.09.2017

The number of arguments most likely depends on your Streamer version, open up the include found in pawno/include folder and check the usage of the function then follow it accordingly in your script.


Re: tag mismatc - BadJih - 04.09.2017

thanks this works for me 1716.3733, -1870.5929, 13.5662, -1