AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Argument Type Mismatch :( (https://forums.alliedmods.net/showthread.php?t=22534)

Rixorster 12-29-2005 13:06

Argument Type Mismatch :(
 
Here's the code:
Code:
   entity_set_vector(entid,EV_VEC_velocity,600.0)    entity_set_float(entid,EV_FL_friction,0.3)
And Errors:
Code:

Error: Argument type mismatch (argument 3) on line 228
Error: Argument type mismatch (argument 3) on line 245


VEN 12-29-2005 13:50

Do you aware what's "vector" mean?

xeroblood 12-29-2005 19:09

Re: Argument Type Mismatch :(
 
Quote:

Originally Posted by Rixorster
Here's the code:
Code:
   entity_set_vector(entid,EV_VEC_velocity,600.0)    entity_set_float(entid,EV_FL_friction,0.3)
And Errors:
Code:

Error: Argument type mismatch (argument 3) on line 228
Error: Argument type mismatch (argument 3) on line 245


Vectors are 3 dimensional arrays containing X,Y,Z coordinates:
Code:
new Float:g_fVector[3] = {601.0, 602.0, 603.0}; //... entity_set_vector(entid,EV_VEC_velocity,g_fVector)


All times are GMT -4. The time now is 15:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.