[FilterScript] [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG)
#21

Allright\' no problem, I\'ll take a look into it, Maybe release my own Version, All Credits to You,

- Mike.
Reply
#22

Quote:
Originally Posted by [NYRP
Mike. ]
Allright\' no problem, I\'ll take a look into it, Maybe release my own Version, All Credits to You,

- Mike.
If you develop a different version, post it here.
Reply
#23

I GET THIS ERROR!! HELP ME!!

Code:
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(319) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#24

Quote:
Originally Posted by SanMarinoRP
I GET THIS ERROR!! HELP ME!!

Code:
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(319) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Code:
strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= \' \'))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
Reply
#25

Quote:
Originally Posted by Compton\'s Eazy E
Quote:
Originally Posted by SanMarinoRP
I GET THIS ERROR!! HELP ME!!

Code:
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(319) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Code:
strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= \' \'))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
were do i place that script??!??!?
Reply
#26

Quote:
Originally Posted by SanMarinoRP
Quote:
Originally Posted by Compton\'s Eazy E
Quote:
Originally Posted by SanMarinoRP
I GET THIS ERROR!! HELP ME!!

Code:
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(319) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Code:
strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= \' \'))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
were do i place that script??!??!?
ALL The way at the bottom
Reply
#27

Quote:
Originally Posted by SanMarinoRP
I GET THIS ERROR!! HELP ME!!

Code:
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(323) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 017: undefined symbol "strtok"
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(324) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\HP_ADM~1\Desktop\dasd\FILTER~1\CARSYS~1.PWN(319) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Or simply use Dini.inc
Reply
#28

Nice script..

Add /park - to park your car where ever u want it..

Reply
#29

Quote:
Originally Posted by [Sk
Noob ]
Nice script..

Add /park - to park your car where ever u want it..

When a player who owns a vehicle left is vehicle the car position is auto-saved.
Reply
#30

EDIT -> More Colours, Easier Commands, Use of GameTextForPlayer.

[iurl=#]REMOVED[/iurl]
Reply
#31

Nice One..
Thank you

-TraNe15-
Reply
#32

Quote:
Originally Posted by TraNe15
Nice One..
Thank you

-TraNe15-
Thanks.
Reply
#33

Nice script ! But don\'t you prefer to disallow a player to get in a locked car, instead of RemovePlayerFromVehicle ?

Regards, Alice.
Reply
#34

Quote:
Originally Posted by Alice[WS
]
Nice script ! But don\'t you prefer to disallow a player to get in a locked car, instead of RemovePlayerFromVehicle ?

Regards, Alice.
It\'s a good suggestion
Reply
#35

hmm can you give a nice more detailed tutorial on how to add cars?
Reply
#36

As far as I can understand, this is what I see

AddCar(1, 411, random(126), random(126), 2, 1, 1, 1, 20000, 10000);

1(car id)
411(car model, in this case infernus)
random(126)(car color1)
random(126)(car color2)
2(unsure)
1(unsure)
1(unsure)
1(unsure)
20000(unsure)
10000(unsure)

thats pretty much it.
Reply
#37

Have an ideea better , put the car so the paintjob and all of the tunning remains even if you go off the server even if you do /callmycar , Please i really need it i tried to configure it but no sense , i couldn`t do it , so if you can help me ! And some players said that if there car is somewhere and isnt used in 5 mins the car would go back where he buyed it in the car park (LS) so please some help ! the 2nd afirmation isnt sure but the first , i think its a good ideea please!
Reply
#38

Quote:
Originally Posted by techdecker
Have an ideea better , put the car so the paintjob and all of the tunning remains even if you go off the server even if you do /callmycar , Please i really need it i tried to configure it but no sense , i couldn`t do it , so if you can help me ! And some players said that if there car is somewhere and isnt used in 5 mins the car would go back where he buyed it in the car park (LS) so please some help ! the 2nd afirmation isnt sure but the first , i think its a good ideea please!
I have concluded that this FS is not compatible with GodFather.
Reply
#39

tell me how can i change dollar to rcash ??
Reply
#40

when i will buy a car it comes: "This is not a buyable car!"
how can i fix it
please help
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)