AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Tag Mismatch (https://forums.alliedmods.net/showthread.php?t=168395)

Fedde 09-28-2011 13:41

[Solved] Tag Mismatch
 
On the following lines...

Code:
entity_get_vector(id,EV_VEC_origin,CheckPoint[id]); entity_set_vector(id,EV_VEC_origin,LastCheckPoint[id]);

Stereo 09-28-2011 13:49

Re: Tag Mismatch
 
http://forums.alliedmods.net/showthread.php?t=6526

Fedde 09-28-2011 14:02

Re: Tag Mismatch
 
I already have that...
Code:
/* Definitions */ #define VECTORSIZE  3 /* Origins */ new CheckPoint[33][VECTORSIZE]; new LastCheckPoint[33][VECTORSIZE];

Stereo 09-28-2011 14:08

Re: Tag Mismatch
 
use Float:

Xellath 09-28-2011 14:08

Re: Tag Mismatch
 
Code:
new Float:...

EV_VEC_origin is a float value.

Fedde 09-28-2011 14:28

Re: Tag Mismatch
 
Quote:

Originally Posted by Xellath (Post 1564840)
Code:
new Float:...

EV_VEC_origin is a float value.

Solved with...
Code:
entity_get_vector(id,EV_VEC_origin,Float:CheckPoint[id]); entity_set_vector(id,EV_VEC_origin,Float:LastCheckPoint[id]);

Arkshine 09-28-2011 14:59

Re: [Solved] Tag Mismatch
 
No, it should be :

new Float:CheckPoint[33][VECTORSIZE];
new Float:LastCheckPoint[33][VECTORSIZE];

You retrieve a float, so your var should be declared as float.

Fedde 09-28-2011 17:00

Re: [Solved] Tag Mismatch
 
Quote:

Originally Posted by Arkshine (Post 1564870)
No, it should be :

new Float:CheckPoint[33][VECTORSIZE];
new Float:LastCheckPoint[33][VECTORSIZE];

You retrieve a float, so your var should be declared as float.

Ok


All times are GMT -4. The time now is 19:30.

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