Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
What's wrong with this line?
69
Big Clucker
Posts: 83
Threads: 25
Joined: Oct 2011
Reputation:
0
#1
04.11.2012, 14:13
PHP код:
if(
GetObjectRot
(
gate
,
0
,
90.0
,
90.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?
Find
Reply
InfiniTy.
High-roller
Posts: 1,251
Threads: 2
Joined: Oct 2012
Reputation:
0
#2
04.11.2012, 14:18
Wrong.
Find
Reply
69
Big Clucker
Posts: 83
Threads: 25
Joined: Oct 2011
Reputation:
0
#3
04.11.2012, 14:19
That wasn't helpeful at all. It's the first think that appears in the wiki domain...
Find
Reply
InfiniTy.
High-roller
Posts: 1,251
Threads: 2
Joined: Oct 2012
Reputation:
0
#4
04.11.2012, 14:22
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..
Find
Reply
69
Big Clucker
Posts: 83
Threads: 25
Joined: Oct 2011
Reputation:
0
#5
04.11.2012, 14:23
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.
Find
Reply
InfiniTy.
High-roller
Posts: 1,251
Threads: 2
Joined: Oct 2012
Reputation:
0
#6
04.11.2012, 14:24
Quote:
Originally Posted by
69
The "gate" defines my object's ID.
Yeah i know.. i didn't see that in the first place.
Find
Reply
tyler12
High-roller
Posts: 1,020
Threads: 38
Joined: May 2011
Reputation:
0
#7
04.11.2012, 14:25
if(GetObjectRot(gate, 0.0, 90.0, 90.0))
Find
Reply
69
Big Clucker
Posts: 83
Threads: 25
Joined: Oct 2011
Reputation:
0
#8
04.11.2012, 14:27
Quote:
Originally Posted by
tyler12
if(GetObjectRot(gate, 0.0, 90.0, 90.0))
Adding the decimals (or removing them) didn't change anything.
Find
Reply
tyler12
High-roller
Posts: 1,020
Threads: 38
Joined: May 2011
Reputation:
0
#9
04.11.2012, 14:30
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.
Find
Reply
69
Big Clucker
Posts: 83
Threads: 25
Joined: Oct 2011
Reputation:
0
#10
04.11.2012, 14:32
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.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 7 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help