Posts: 1,208
Threads: 36
Joined: Apr 2015
Quote:
Originally Posted by ToiletDuck
IsPlayerOnPlayerScreen parameters? can't find it in the include.
|
Deprecated, use:
PHP код:
IsElementOnPlayerScreen(playerid,targetid,Item3D_Type:target_type=item_player,element_orientation:orientation=o_front,Float:rx=INVALID_ROTATION,Float:rz=INVALID_ROTATION,Float:vrx=VERTICAL_CAMERA_RADIUS,Float:vrz=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true,bool:testVW=true,bool:veh_col=false);
IsElementOnFakeScreen(Float:x,Float:y,Float:z,targetid,Item3D_Type:target_type,Float:rx,Float:rz,Float:vrx=VERTICAL_CAMERA_RADIUS,Float:vrz=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true,bool:veh_col=false);
Posts: 893
Threads: 132
Joined: May 2012
Reputation:
0
Does anyone still have this include? The download link is no longer working.
Posts: 1,046
Threads: 29
Joined: Mar 2010
It looks like that his second GitHub account has vanished from the surface including his website.
Posts: 603
Threads: 12
Joined: Sep 2007
Reputation:
0
the shortened links (ct8.pl) are dead
Posts: 3
Threads: 0
Joined: Oct 2018
Update v4.6.2:
- Update for Streamer v2.9.4
Download:
https://adm.ct8.pl/d/3DTryg.inc
Posts: 261
Threads: 32
Joined: Dec 2018
Just remove that version check from respective includes, in your case VehicleMissileCol.
Posts: 26
Threads: 3
Joined: Jul 2018
Reputation:
0
Thanks for your reply, I forgot to mention this in my previous post but I actually already tried that.
If I remove the version check Pawno simply doesn't compile the script. I get a blank output and an AMX file of 0kb. So that doesn't work either sadly.
Posts: 10
Threads: 0
Joined: Dec 2017
Today 3DTryg has been updated to v4.7.0, now FCNPC v2.0.0 is supported.
Download:
https://adm.ct8.pl/d/3DTryg.inc
Updates:
https://adm.ct8.pl/#updates
Quote:
Originally Posted by NoahAntilles
Thanks for your reply, I forgot to mention this in my previous post but I actually already tried that.
If I remove the version check Pawno simply doesn't compile the script. I get a blank output and an AMX file of 0kb. So that doesn't work either sadly.
|
Check your include structure:
PHP код:
#include <Streamer>
#include <ColAndreas>
#include <3DTryg>
#include <Missile>
#include <VehicleMissileCol>
Never remove version check and other check because this prevent compiler some warnings/errors/crashes.
Posts: 1,046
Threads: 29
Joined: Mar 2010
Did you set up any unit tests yet?
Posts: 10
Threads: 0
Joined: Dec 2017
Include has been tested by standard test script with use all functions, no warning and errors.
Posts: 1,046
Threads: 29
Joined: Mar 2010
Nice test script
https://github.com/AbyssMorgan/3DTry...aster/test.pwn
If it compiles fine then it doesn't mean that it is also semantically correct.
Posts: 10
Threads: 0
Joined: Dec 2017
Quote:
Originally Posted by BigETI
|
This is not correct test script, now AbyssMorgan uploaded right test.
Posts: 48
Threads: 5
Joined: Jan 2012
Reputation:
0
But it doesn’t have any assertions in the test script or am I blind?
Just because it compiles and doesn’t give you any warnings doesn’t mean that logic is correct.
Posts: 10
Threads: 0
Joined: Dec 2017
Quote:
Originally Posted by The King's Bastard
But it doesn’t have any assertions in the test script or am I blind?
Just because it compiles and doesn’t give you any warnings doesn’t mean that logic is correct.
|
The logic was tested when the function was created, after the successful test an update was issued and the test code was deleted.
The "Fuze Test" test script applies to the compiler test to avoid simple errors with mass fixes.
Example: After syntax update
Posts: 1,046
Threads: 29
Joined: Mar 2010
Please add semantics checks to your test script.
You can use y_test to create an unit test. More about that is available at sampctl wiki and YSI documentation.