Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
[NYRP]Mike. - 19.09.2009
Allright\' no problem, I\'ll take a look into it, Maybe release my own Version, All Credits to You,
- Mike.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
RaFsTar - 19.09.2009
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.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
SanMarinoRP - 20.09.2009
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.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
Eazy_Efolife - 20.09.2009
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;
}
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
SanMarinoRP - 20.09.2009
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??!??!?
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
Eazy_Efolife - 20.09.2009
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
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
RaFsTar - 20.09.2009
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
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
[Sk]Noob - 20.09.2009
Nice script..
Add /park - to park your car where ever u want it..
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
RaFsTar - 20.09.2009
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.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
[NYRP]Mike. - 20.09.2009
EDIT -> More Colours, Easier Commands, Use of GameTextForPlayer.
[iurl=#]REMOVED[/iurl]
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
TraNe15 - 20.09.2009
Nice One..
Thank you
-TraNe15-
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
RaFsTar - 20.09.2009
Quote:
Originally Posted by TraNe15
Nice One..
Thank you
-TraNe15-
|
Thanks.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
Alice[WS] - 20.09.2009
Nice script ! But don\'t you prefer to disallow a player to get in a locked car, instead of RemovePlayerFromVehicle ?
Regards, Alice.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
RaFsTar - 20.09.2009
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
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
SanMarinoRP - 20.09.2009
hmm can you give a nice more detailed tutorial on how to add cars?
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
Hiitch - 21.09.2009
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.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
techdecker - 23.11.2009
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
![Smiley](images/smilies/smile.png)
!
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
RaFsTar - 23.11.2009
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 ![Smiley](images/smilies/smile.png) !
|
I have concluded that this FS is not compatible with GodFather.
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
11irfan11 - 24.11.2009
tell me how can i change dollar to rcash ??
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) -
alma1305 - 13.12.2009
when i will buy a car it comes: "This is not a buyable car!"
![confused](images/smilies/confused.gif)
how can i fix it
![Huh?](images/smilies/confused.gif)
please help