SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/03/2018, 05:42 PM   #181
jop9888
Big Clucker
 
Join Date: Mar 2009
Posts: 150
Reputation: 6
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Quote:
Originally Posted by NaS View Post
Both aren't perfect as neither of the positions are really correct.
There are situations where the next node's surface angle is a lot different than the last node's surface angle, so it's generally better to use the NPC's current position.

With the QuaternionStuff Plugin I calculated the X and Z angle based on the Nodes, not the surface. A correct version would update the surface angle constantly, not only when passing a node.

Anyway this whole script could use a re-write. The code base is 5 years old and nowadays I would do A LOT very differently and more efficiently.
I suppose thats true, nevertheless the code is very usefull to me, learned alot from it so thanks
When i am done i'll let you know what i've created with it.
jop9888 is offline   Reply With Quote
Old 15/03/2018, 09:38 AM   #182
beybedragon
Banned
 
Join Date: Dec 2013
Posts: 38
Reputation: 1
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Code:
G:\samp03\filterscripts\driverfs.pwn(95) : fatal error 100: cannot read from file: "GPS"
Code:
#include <GPS>
where i find this include? i not found it in the shared files
beybedragon is offline   Reply With Quote
Old 15/03/2018, 10:52 AM   #183
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Posts: 1,585
Reputation: 461
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Quote:
Originally Posted by beybedragon View Post
Code:
G:\samp03\filterscripts\driverfs.pwn(95) : fatal error 100: cannot read from file: "GPS"
Code:
#include <GPS>
where i find this include? i not found it in the shared files
Sorry I forgot to change that.

It's the RouteConnector.inc from the GPS Plugin (I renamed the include to "GPS.inc"):

https://github.com/grasmanek94/SA-MP-GPS
NaS is offline   Reply With Quote
Old 15/03/2018, 05:21 PM   #184
beybedragon
Banned
 
Join Date: Dec 2013
Posts: 38
Reputation: 1
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Quote:
Originally Posted by NaS View Post
Sorry I forgot to change that.

It's the RouteConnector.inc from the GPS Plugin (I renamed the include to "GPS.inc"):

https://github.com/grasmanek94/SA-MP-GPS
gave this errors, i forget something?

Code:
G:\samp03\filterscripts\driverfs.pwn(1443) : error 025: function heading differs from prototype

public GPS_WhenRouteIsCalculated(routeid,node_id_array[],amount_of_nodes,Float:distance,Float:Polygon[],Polygon_Size,Float:NodePosX[],Float:NodePosY[],Float:NodePosZ[])//Every processed Queue will be called here
HTML Code:
G:\samp03\filterscripts\driverfs.pwn(1244) : warning 202: number of arguments does not match definition

CalculatePath(startnode, endnode, DRIVERS_ROUTE_ID + driverid, false, _, true);
beybedragon is offline   Reply With Quote
Old 15/03/2018, 06:09 PM   #185
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Posts: 1,585
Reputation: 461
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Quote:
Originally Posted by beybedragon View Post
gave this errors, i forget something?

Code:
G:\samp03\filterscripts\driverfs.pwn(1443) : error 025: function heading differs from prototype

public GPS_WhenRouteIsCalculated(routeid,node_id_array[],amount_of_nodes,Float:distance,Float:Polygon[],Polygon_Size,Float:NodePosX[],Float:NodePosY[],Float:NodePosZ[])//Every processed Queue will be called here
HTML Code:
G:\samp03\filterscripts\driverfs.pwn(1244) : warning 202: number of arguments does not match definition

CalculatePath(startnode, endnode, DRIVERS_ROUTE_ID + driverid, false, _, true);
Check the subfolder "Plugin", the new version is in there:

https://github.com/grasmanek94/SA-MP.../master/Plugin

The one you have is probably an older version with slightly different syntax.
NaS is offline   Reply With Quote
Old 15/03/2018, 10:06 PM   #186
beybedragon
Banned
 
Join Date: Dec 2013
Posts: 38
Reputation: 1
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Quote:
Originally Posted by NaS View Post
Check the subfolder "Plugin", the new version is in there:

https://github.com/grasmanek94/SA-MP.../master/Plugin

The one you have is probably an older version with slightly different syntax.
I changed the include route connector and now is working, thank you very much
beybedragon is offline   Reply With Quote
Old 17/03/2018, 03:44 PM   #187
BulletRaja
Banned
 
Join Date: Dec 2017
Location: India
Posts: 219
Reputation: 20
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Thats Great
BulletRaja is offline   Reply With Quote
Old 16/04/2018, 07:44 PM   #188
dorvnzla
Little Clucker
 
Join Date: May 2017
Posts: 1
Reputation: 0
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Hello my server shows this errors pls help me!!

C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1041) : error 010: invalid function or declaration
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1044) : error 021: symbol already defined: "CA_CreateObject_DC"
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042) : error 010: invalid function or declaration
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042 -- 1047) : error 021: symbol already defined: "CA_DestroyObject_DC"
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042 -- 1047) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
dorvnzla is offline   Reply With Quote
Old 16/04/2018, 09:22 PM   #189
RANGER44
Big Clucker
 
RANGER44's Avatar
 
Join Date: Oct 2016
Location: SA-MP
Posts: 84
Reputation: 25
Default Re: NPC Drivers - Citizen & Fully working Taxi script - (FS-Version)

Quote:
Originally Posted by dorvnzla View Post
Hello my server shows this errors pls help me!!

C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1041) : error 010: invalid function or declaration
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1044) : error 021: symbol already defined: "CA_CreateObject_DC"
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042) : error 010: invalid function or declaration
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042 -- 1047) : error 021: symbol already defined: "CA_DestroyObject_DC"
C:\Users\ARMANDO4\Documents\Servidor sa-mp\pawno\include\ColAndreas.inc(1042 -- 1047) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Get the file/inc colandreas from here:
http://forum.sa-mp.com/showthread.php?t=586068 , make sure to read the text tutorial

Use a filterscript to help organize your objects successfully.

Code:
public OnFilterScriptInit()
{
	// Add any remove buildings (This only works once)
	CA_RemoveBuilding();
	
	// Initialize the collision world (This creates San Andreas, the entire map, excluding removed buildings)
	CA_Init();
	
	// Create objects
	CA_CreateDynamicObject_SC();
RANGER44 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
[FilterScript] tAxI's XVM System (menu version) (Xtreme Vehicle Management) CJay9209 Filterscripts 2 05/08/2017 03:18 PM
command not working fully please help +rep given Crossfire1989 Scripting Help 0 22/01/2013 12:40 AM
Hamachi not fully working Torran Everything and Nothing 5 04/04/2010 10:50 PM
[Help] Not fully working trunk system Diablo1st Help Archive 1 04/06/2009 09:37 PM


All times are GMT. The time now is 02:58 PM.


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