This system adds a vehicle purchasing system to ur GM: - Fully automated menu construction: simply use CreateBuyableVehicle command to add one to menu - Permanently saves with player username - Modsaving and personal vehicles spawn with mods applied - Auto modsave: Mod at a garage and it saves by default - preview vehicles before you buy - vehicle parking: save your vehicle where u want it - vehicle despawns when you leave the server - Built in vehicle security systems - Call your vehicle to you! - Full Vehicle Control at you fingertips!! Essentially it is my XVM system but more universal for all servers and minimises the need for having empty unusable cars all over your server --------------------=============================-------------------------------------- tAxI's TVS Toolkit - INC Package for SA-MP Multiplayer Modification of Grand Theft Auto - San Andreas. Copyright © 2007 Chris Johnstone (tAxI/Necrioss) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ------------------================================------------------------------------- In Order to get this working you must put All of the files in the include directory of the download into your "pawno/include" folder. --------------=================================---------------- To use you must insert at the top of your script ---> #include <TVS> insert under OnGameModeInit() OR if using in a filterscript OnFilterScriptInit() ---> TVS_OnGameModeInit(); insert under OnVehicleDeath(vehicleid,reason) ---> TVS_OnVehicleDeath(vehicleid); insert under OnVehicleMod(vehicleid,componentid) ---> TVS_OnVehicleMod(vehicleid,componentid); insert under OnVehicleRespray(vehicleid,color1,color2) ---> TVS_OnVehicleRespray(vehicleid,color1,color2); insert under OnVehiclePaintjob(vehicleid,paintjobid) ---> TVS_OnVehiclePaintjob(vehicleid,paintjobid); insert under OnPlayerDisconnect(playerid) ---> TVS_OnPlayerDisconnect(playerid); insert under OnPlayerSelectedMenuRow(playerid,row) ---> TVS_OnPlayerSelectedMenuRow(playerid,row); insert under OnPlayerStateChange(playerid, newstate, oldstate) ---> TVS_OnPlayerStateChange(playerid, newstate, oldstate); insert under OnPlayerExitedMenu(playerid) ---> TVS_OnPlayerExitedMenu(playerid); A list of availlable commands will appear on your commands list on the right hand side of your pawno window If you have any problems Please contact me, <tAxI>, via the SA-MP forums @ http://forum.sa-mp.com Enjoy!!! tAxI/Necrioss <aka> Chris Johnstone. ++++++++++++++++__________________________+++++++++++++++++++ CURRENT COMMANDS LIST: native TVS_OnGameModeInit(); native TVS_OnVehicleDeath(vehicleid); native TVS_OnPlayerSelectedMenuRow(playerid,row); native TVS_OnPlayerDisconnect(playerid); native TVS_OnVehicleMod(vehicleid,componentid); native TVS_OnVehicleRespray(vehicleid,color__1,color__2); native TVS_OnVehiclePaintjob(vehicleid,paintjobid); native TVS_OnPlayerStateChange(playerid, newstate, oldstate); native TVS_OnPlayerCommandText(playerid, cmdtext[]); native TVS_ShowPlayerBuyVehicleMenu(playerid); native TVS_ShowPlayerManageVehicleMenu(playerid); ***commandtext and showplayerbuyvehiclemenu commands are interchangable: e.g. if u want the commands default (/buycar & /managecar) simply use command text where indicated above, however to insert the menu showing routine into your own command etc simply remove the commandtext lines and use the showmenu command included in the code system native TVS_RegisterPlayer(playerid); <<< Must be inserted into whatever register command you have for your server so when people register they are auto registered with the vehicle shop system! native TVS_LoginPlayer(playerid); <<< Must be inserted under whatever login command you use or their vehicle will not spawn at all - note that for easy integration if someone is already registered and the login command is used it will register them automatically! native CreateBuyableVehicle(vehicle_model, vehicle_cost, vehicle_name[20], vehicle_color_1, vehicle_color_2); <<< This adds a vehicle with the selected attributes to the vehicle purchasing menu system. ENJOY!!!
Originally Posted by Jokel317
Trying to add it into my modified gamemode of LVDM and get these errors please help thanks!!!!!
D:\Program Files\Rockstar Games\Normal San Andreas\pawno\include\TVS_core/TVS_core.own(1853) : error 001: expected token: ";", but found "return" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(92) : warning 219: local variable "name" shadows a variable at a preceding level D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(9 : error 035: argument type mismatch (argument 2) D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(9 : error 035: argument type mismatch (argument 2) D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(92) : warning 204: symbol is assigned a value that is never used: "name" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(147) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(191) : warning 217: loose indentation D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(195) : warning 217: loose indentation D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(369) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(369) : error 004: function "OnPlayerStateChange" is not implemented D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(370) : warning 217: loose indentation D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(371) : error 017: undefined symbol "playerid" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : warning 225: unreachable code D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : warning 217: loose indentation D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(375) : error 004: function "OnVehicleDeath" is not implemented D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(376) : warning 217: loose indentation D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(377) : error 017: undefined symbol "vehicleid" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : warning 225: unreachable code D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(381) : error 004: function "OnVehicleMod" is not implemented D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(383) : error 017: undefined symbol "vehicleid" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : warning 225: unreachable code D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(387) : error 004: function "OnVehiclePaintjob" is not implemented D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(389) : error 017: undefined symbol "vehicleid" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : warning 225: unreachable code D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(393) : error 004: function "OnVehicleRespray" is not implemented D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(395) : error 017: undefined symbol "vehicleid" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : warning 225: unreachable code D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : error 029: invalid expression, assumed zero D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(399) : error 004: function "OnPlayerSelectedMenuRow" is not implemented D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(401) : error 017: undefined symbol "playerid" D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(407) : warning 225: unreachable code D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(407) : warning 217: loose indentation D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(702) : warning 235: public function lacks forward declaration (symbol "SendPlayerFormattedText") D:\Program Files\Rockstar Games\Normal San Andreas\gamemodes\lvdm.pwn(709) : warning 235: public function lacks forward declaration (symbol "SendAllFormattedText") 22 Errors. |
CreateBuyableVehicle(411,50000,"Infernus",0,0);
CreateBuyableVehicle(522,25000,"NRG-500",0,0);
CreateBuyableVehicle(451,40000,"Turismo",0,0);
CreateBuyableVehicle(429,42000,"Banshee",0,1);
CreateBuyableVehicle(480,36000,"Comet",0,0);
CreateBuyableVehicle(415,39000,"Cheetah",0,0);
CreateBuyableVehicle(560,31000,"Sultan",0,0);
CreateBuyableVehicle(562,33000,"Elegy",0,0);
C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(390) : error 017: undefined symbol "MAX_VEHICLES" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(394) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(400) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(400) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(401) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(401) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(449) : error 017: undefined symbol "GetMaxPlayers" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(449) : error 029: invalid expression, assumed zero C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(449) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : error 017: undefined symbol "SetTimer" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : error 001: expected token: ";", but found ")" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : error 029: invalid expression, assumed zero C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Errors. |
C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(390) : error 017: undefined symbol "MAX_VEHICLES" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(394) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(400) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(400) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(401) : error 017: undefined symbol "MAX_PLAYERS" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(401) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(449) : error 017: undefined symbol "GetMaxPlayers" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(449) : error 029: invalid expression, assumed zero C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(449) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : error 017: undefined symbol "SetTimer" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : warning 215: expression has no effect C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : error 001: expected token: ";", but found ")" C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : error 029: invalid expression, assumed zero C:\Documents and Settings\yosmel\Skrivebord\SAMP server\pawno\include\TVS_core/TVS_core.own(450) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Errors. |