AlliedModders

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

bibu 04-17-2011 11:47

Traceresult Tag Mismatch
 
PHP Code:

new TraceResult

if(get_tr2(TraceResultTR_pHit) == 0// want it so you spawn above a floor 

Quote:

Warning: Tag mismatch (on the second line)
Native:

PHP Code:

   get_tr2 tr_handleTraceResult:tr_member, {Float,_}:... ) 


Arkshine 04-17-2011 11:51

Re: Traceresult Tag Mismatch
 
You name your variable "TraceResult", when this label is already used as tag, you have the solution below your eyes.

bibu 04-17-2011 12:07

Re: Traceresult Tag Mismatch
 
Ok, I just renamed it and it works, thanks. Thought it would give an error like "already defined".

Arkshine 04-17-2011 12:09

Re: Traceresult Tag Mismatch
 
TraceResult is not a variable, it's a tag. But yes, a specific error for that doesn't exist.


All times are GMT -4. The time now is 20:12.

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