Posts: 3,324
Threads: 96
Joined: Sep 2013
I just had a huge WTF error.
First, line of code:
Код:
normX = (P2[0] − P1[0]) * (P3[0] - P1[0]);
Yes, that's it!
Second, errors on line above:
Quote:
Originally Posted by compiler
error 001: expected token: ")", but found "в"
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
|
There isn't a "в" on that fucking line! What is the problem here?
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
So can we see the whole thing? The lines above?
Posts: 3,324
Threads: 96
Joined: Sep 2013
pawn Код:
stock SurfaceNormals(Float:P1[3], Float:P2[3], Float:P3[3], &Float:normX, &Float:normY, &Float:normZ, &Float:vectX, &Float:vectY, &Float:vectZ)
{
normX = (P2[0] − P1[0]) * (P3[0] - P1[0]);
normY = (P2[1] − P1[1]) * (P3[1] - P1[1]);
normZ = (P2[2] − P1[2]) * (P3[2] - P1[2]);
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
Compiles fine for me. Is there anything above that function?
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Threshold
Compiles fine for me. Is there anything above that function?
|
Nope, empty file.
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
Mind sending me the whole script then?
Posts: 3,324
Threads: 96
Joined: Sep 2013
https://www.dropbox.com/s/8yl0bgus7u...fnorm.inc?dl=0
Shouldn't need to see the second function, but it's there. Anyways this is just something I did when I was fucking around so it's nothing serious (especially the trig XD).
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
So are you getting this error when you try to compile this include? Because I am not getting any unusual errors...
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
Type that code again lol
don't copy the buggy one
You have a non-graphical character in your code.
It happened to me too!!
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Threshold
So are you getting this error when you try to compile this include? Because I am not getting any unusual errors...
|
They are stock, did you try using the functions in the script you were compiling?
Quote:
Originally Posted by Yashas
Type that code again lol
don't copy the buggy one
You have a non-graphical character in your code.
It happened to me too!!
|
Thanks, I'll try it. EDIT: Well isn't that some shit...