Vehicle: File Txt - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle: File Txt (
/showthread.php?tid=655844)
Vehicle: File Txt -
DerickClark - 01.07.2018
There a way to add vehicles by txt?
Код:
CMD:printveh(playerid, params[])
{
new string[100];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "Vehicle - CreateVehicle(vehicleid,%f, %f, %f, 0, -1, -1, 6000000);", x, y, z);
SendClientMessageToAll(-1, string);
return 1;
}
CMD:printtrailer(playerid, params[])
{
new string[100], Float:tmpCoords[3], trailerID, vehicleid = GetPlayerVehicleID(playerid); // get the id of the vehicle the player is driving
trailerID = GetVehicleTrailer(vehicleid); // get the ID of the trailer attached to the current vehicle
new trailerModel = GetVehicleModel(trailerID); // get the model of the trailer
GetVehiclePos(trailerID, tmpCoords[0], tmpCoords[1], tmpCoords[2]); // get the position of the trailer
format(string, sizeof string, "Trailer - CreateVehicle(%d, %f, %f, %f, 0, -1, -1, 6000000);", trailerModel, tmpCoords[0], tmpCoords[1], tmpCoords[2]);
SendClientMessageToAll(-1, string);
return 1;
}
Re: Vehicle: File Txt -
Athos00 - 01.07.2018
if u use dini :
new string[36];
format(string, sizeof(string), "Vehicles/%d.ini", vehicleid);
dini_Create(string);
but,
https://sampforum.blast.hk/showthread.php?tid=471957
Re: Vehicle: File Txt -
DerickClark - 01.07.2018
Quote:
Originally Posted by Athos00
|
I'm not looking for Vehicle System. I'm looking for to print a vehicle to txt
Re: Vehicle: File Txt -
RogueDrifter - 01.07.2018
Are you trying to make a vehicle appear in the chat box (as a small emoji for example?)
Son what in the fuck are you trying to do there because it isn't making any sense.
Re: Vehicle: File Txt -
DerickClark - 01.07.2018
Quote:
Originally Posted by RogueDrifter
Are you trying to make a vehicle appear in the chat box (as a small emoji for example?)
Son what in the fuck are you trying to do there because it isn't making any sense.
|
Maybe read it again so you can understand.....
Learn how to Read?
i clear said How to print a vehicle from createvehicle into txt
Re: Vehicle: File Txt -
Calisthenics - 01.07.2018
"print" is a confusing word for your case unless someone understands that you are referring to "fprintf" so you want to write to a file.
https://sampwiki.blast.hk/wiki/Fwrite
Re: Vehicle: File Txt -
RogueDrifter - 01.07.2018
Quote:
Originally Posted by DerickClark
Maybe read it again so you can understand.....
Learn how to Read?
i clear said How to print a vehicle from createvehicle into txt
|
LOL. You know what you're absolutely right, let us wait for Santa to come over here and give the ultimate solution for 'print a vehicle from createvehilce into txt' *thumbs up*