What's wrong with this line?
#1

PHP код:
if(GetObjectRot(gate090.090.0)) 
Thats one of my if statements, I get the following error on it:

Код:
error 035: argument type mismatch (argument 2)
What's wrong with it?
Reply
#2

Wrong.
Reply
#3

That wasn't helpeful at all. It's the first think that appears in the wiki domain...
Reply
#4

Quote:
Originally Posted by 69
Посмотреть сообщение
That wasn't helpeful at all. It's the first think that appears in the wiki domain...
Didn't look carefully at that line.. sorry =] didn't see the 'gate' thing there..
Reply
#5

Quote:
Originally Posted by Adytza.
Посмотреть сообщение
Didn't look carefully at that line.. sorry =] didn't see the 'gate' thing there..
The "gate" defines my object's ID.
Reply
#6

Quote:
Originally Posted by 69
Посмотреть сообщение
The "gate" defines my object's ID.
Yeah i know.. i didn't see that in the first place.
Reply
#7

if(GetObjectRot(gate, 0.0, 90.0, 90.0))
Reply
#8

Quote:
Originally Posted by tyler12
Посмотреть сообщение
if(GetObjectRot(gate, 0.0, 90.0, 90.0))
Adding the decimals (or removing them) didn't change anything.
Reply
#9

Quote:
Originally Posted by 69
Посмотреть сообщение
Adding the decimals (or removing them) didn't change anything.
It is a float. Decimal's must be there. Did you do gate = CreateObject(.....);

@Drake - You mean the model? That's not the object ID.
Reply
#10

Quote:
Originally Posted by tyler12
Посмотреть сообщение
It is a float. Decimal's must be there. Did you do gate = CreateObject(.....);

@Drake - You mean the model? That's not the object ID.
Yes, I did create the object and define it as gate.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)