SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/04/2012, 10:11 PM   #1
stormchaser206
Gangsta
 
stormchaser206's Avatar
 
Join Date: Jan 2012
Location: United States of America
Posts: 694
Reputation: 46
Default Problem with code for gates

Is it anything in this:
http://pastebin.com/HJhsV2Aw

That is causing these errors:
Code:
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2066) : error 017: undefined symbol "IsObjectMoving"
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2071) : error 001: expected token: ")", but found "{"
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2075) : warning 202: number of arguments does not match definition
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2075) : warning 202: number of arguments does not match definition
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2075) : warning 202: number of arguments does not match definition
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2080) : warning 202: number of arguments does not match definition
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2080) : warning 202: number of arguments does not match definition
C:\Users\Keegan\Desktop\gamemodes\WorldWar.pwn(2080) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

I am trying to create a gate, Can anyone help?
__________________
LOOKING FOR FREE GRAPHICS DESIGNER
FOR FREE
I need someone to help me create graphics and images for my upcoming roleplay server. I don't have any money, so I can't pay.
stormchaser206 is offline   Reply With Quote
Old 09/04/2012, 10:18 PM   #2
ViniBorn
Godfather
 
ViniBorn's Avatar
 
Join Date: Aug 2010
Location: Brasília
Posts: 5,012
Reputation: 635
Default Re: Problem with code for gates

pawn Code:
if(IsPlayerConnected(i && IsPlayerInRangeOfPoint(i, 15.0, 2664.6685, -1803.4414, 9.7622))
//Replace
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 15.0, 2664.6685, -1803.4414, 9.7622))
__________________
ViniBorn is offline   Reply With Quote
Old 09/04/2012, 10:19 PM   #3
Jack.7331
Big Clucker
 
Join Date: Mar 2012
Posts: 164
Reputation: 3
Default Re: Problem with code for gates

On line 2071 you need an extra ) after the ID (I)
Jack.7331 is offline   Reply With Quote
Old 09/04/2012, 10:20 PM   #4
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 935
Reputation: 146
Default Re: Problem with code for gates

is it server version 0.3d or later?

if your on 0.3c it wont work as it dont support that function.
Jonny5 is offline   Reply With Quote
Old 09/04/2012, 10:27 PM   #5
stormchaser206
Gangsta
 
stormchaser206's Avatar
 
Join Date: Jan 2012
Location: United States of America
Posts: 694
Reputation: 46
Default Re: Problem with code for gates

Its 0.3d, And viniborn, Rep+ cause that fixed one error, but now i still have the IsObjectMoving error.
__________________
LOOKING FOR FREE GRAPHICS DESIGNER
FOR FREE
I need someone to help me create graphics and images for my upcoming roleplay server. I don't have any money, so I can't pay.
stormchaser206 is offline   Reply With Quote
Old 09/04/2012, 10:30 PM   #6
ViniBorn
Godfather
 
ViniBorn's Avatar
 
Join Date: Aug 2010
Location: Brasília
Posts: 5,012
Reputation: 635
Default Re: Problem with code for gates

IsObjectMoving was added in SA-MP 0.3d.

You are compiling with the correct pawncc?
__________________
ViniBorn is offline   Reply With Quote
Old 09/04/2012, 10:32 PM   #7
stormchaser206
Gangsta
 
stormchaser206's Avatar
 
Join Date: Jan 2012
Location: United States of America
Posts: 694
Reputation: 46
Default Re: Problem with code for gates

Yea?
__________________
LOOKING FOR FREE GRAPHICS DESIGNER
FOR FREE
I need someone to help me create graphics and images for my upcoming roleplay server. I don't have any money, so I can't pay.
stormchaser206 is offline   Reply With Quote
Old 09/04/2012, 10:34 PM   #8
Jack.7331
Big Clucker
 
Join Date: Mar 2012
Posts: 164
Reputation: 3
Default Re: Problem with code for gates

Hmm..
Are you sure your includes and plugins are up to date? (0.3d)
Jack.7331 is offline   Reply With Quote
Old 09/04/2012, 10:38 PM   #9
stormchaser206
Gangsta
 
stormchaser206's Avatar
 
Join Date: Jan 2012
Location: United States of America
Posts: 694
Reputation: 46
Default Re: Problem with code for gates

That might be the problem, I cant find IsObjectMoving in a_objects.inc or a_samp.inc. Maybe can you upload
0.3d one?
__________________
LOOKING FOR FREE GRAPHICS DESIGNER
FOR FREE
I need someone to help me create graphics and images for my upcoming roleplay server. I don't have any money, so I can't pay.
stormchaser206 is offline   Reply With Quote
Old 09/04/2012, 10:41 PM   #10
ViniBorn
Godfather
 
ViniBorn's Avatar
 
Join Date: Aug 2010
Location: Brasília
Posts: 5,012
Reputation: 635
Default Re: Problem with code for gates

a_objects

Code:
/*  SA-MP Object Functions
 *
 *  (c) Copyright 2005-2011, SA-MP Team
 *
 */

#if defined _objects_included
	#endinput
#endif
#define _objects_included
#pragma library objects

// Objects

native CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
native AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
native AttachObjectToObject(objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1);
native AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
native SetObjectPos(objectid, Float:X, Float:Y, Float:Z);
native GetObjectPos(objectid, &Float:X, &Float:Y, &Float:Z);
native SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ);
native GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
native IsValidObject(objectid);
native DestroyObject(objectid);
native MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
native StopObject(objectid);
native IsObjectMoving(objectid);
native CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
native SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z);
native GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z);
native SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ);
native GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
native IsValidPlayerObject(playerid, objectid);
native DestroyPlayerObject(playerid, objectid);
native MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
native StopPlayerObject(playerid, objectid);
native IsPlayerObjectMoving(playerid, objectid);
native AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
__________________
ViniBorn is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gates problem.. help pls :) GoHaN7 Scripting Help 5 18/02/2012 07:31 AM
Gates Problem Eugene. Server Support 27 27/01/2012 08:14 PM
Problem with the gates! Setkus Scripting Help 6 05/01/2012 05:53 PM
Need code for deleting gates area 51 Admigo Scripting Help 4 03/12/2011 08:26 PM
[HELP]Problem with gates krisko Help Archive 1 11/08/2009 08:50 PM


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.