AVS park problem - 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: AVS park problem (
/showthread.php?tid=433255)
AVS park problem -
CrayZee09 - 26.04.2013
I have Advanced Vehicle System and i want to put
THIS /park command. I got some errors :
Код:
E:\DOCUME~1\Adrian\Desktop\avs.pwn(1243) : error 017: undefined symbol "PlayerInfo"
E:\DOCUME~1\Adrian\Desktop\avs.pwn(1243) : warning 215: expression has no effect
E:\DOCUME~1\Adrian\Desktop\avs.pwn(1243) : error 001: expected token: ";", but found "]"
E:\DOCUME~1\Adrian\Desktop\avs.pwn(1243) : error 029: invalid expression, assumed zero
E:\DOCUME~1\Adrian\Desktop\avs.pwn(1243) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Could someone make it work or something? I can't get it...
Here is the script:
AVS - Pastebin
Re: AVS park problem -
Jstylezzz - 26.04.2013
You can't just copy/paste anything that was not made specifically for your script (most of the times). AVS already has a good /park command, why replace it? If you still want to replace it, post the AVS park command and tell us what you want to add/change, so we can point out the actions for you.
Re: AVS park problem -
CrayZee09 - 26.04.2013
AVS Don't have /park command.
Re: AVS park problem -
Jstylezzz - 26.04.2013
Quote:
Originally Posted by CrayZee09
AVS Don't have /park command.
|
You are talking about MadeMan's Advanced Vehicle System right? If so, I have to disapoint you, it does have a park command. Well, it's not actually a command, but try the following:
- Go into a vehicle that you own
- type /v
- choose 'Park'
Re: AVS park problem -
CrayZee09 - 26.04.2013
No, there isn't any park there. i checked
anybody ?
Re: AVS park problem -
Jstylezzz - 26.04.2013
pawn Код:
case DIALOG_VEHICLE:
{
new vehicleid = GetPVarInt(playerid, "DialogValue1");
new caption[32], info[256];
format(caption, sizeof(caption), "Vehicle ID %d", vehicleid);
strcat(info, "Engine\nLights\nHood\nTrunk", sizeof(info));
strcat(info, "\nFill Tank", sizeof(info));
if(GetPlayerVehicleAccess(playerid, vehicleid) >= 2)
{
new value = VehicleValue[vehicleid]/2;
format(info, sizeof(info), "%s\nSell Vehicle ($%d)\nPark Vehicle\nEdit License Plate", info, value);
}
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, caption, info, "Select", "Cancel");
}
This code is copied from the AVS script. Using /v this dialog will be shown,
if you own the vehicle.
Re: AVS park problem -
CrayZee09 - 26.04.2013
i got only hood, trunk, fill...but not sell car, park or license plate...