21.10.2009, 10:19
I know, I must search first, but I've a problem with searching:
[img width=1024 height=599]/imageshack/img21/5819/sampnotallowed.jpg[/img]
I want to do in-game /addcar and then comes AddStaticVehicle in a file. (Cars.txt)
I know something to put
With dini I can't use I think because then you must have a name for it: Car=AddStaticVehicle(...);
And when you want the next car, then the first car is deleted...
I don't want that.
How can I save lines like AddStaticVehicle in a file and load it in OnGameModeInit()
Please help me
[img width=1024 height=599]/imageshack/img21/5819/sampnotallowed.jpg[/img]
I want to do in-game /addcar and then comes AddStaticVehicle in a file. (Cars.txt)
I know something to put
pawn Код:
new Float:GetX, Float:GetY, Float:GetZ, Float:GetA, string[256], auto;
GetPlayerPos(playerid, Float:GetX, Float:GetY, Float:GetZ);
GetPlayerFacingAngle(playerid, Float:GetA);
auto = GetVehicleModel(GetVehicleID(playerid));
format(string, sizeof(string), "AddStaticVehicle(%d, %f, %f, %f, %f, 0, 0);", auto, Float:GetX, Float:GetY, Float:GetZ, Float:GetA);
And when you want the next car, then the first car is deleted...
I don't want that.
How can I save lines like AddStaticVehicle in a file and load it in OnGameModeInit()
Please help me