https://sampforum.blast.hk/showthread.php?tid=452843
EDIT: If you didn't like this tutorial just ****** 'samp car dealership tutorial'. :P |
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\pawno\include\fly.inc(42) : warning 217: loose indentation C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\pawno\include\fly.inc(43) : warning 217: loose indentation C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(870) : error 017: undefined symbol "engine" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(871) : error 017: undefined symbol "engine" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(888) : error 017: undefined symbol "engine" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(889) : error 017: undefined symbol "engine" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(906) : error 017: undefined symbol "engine" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(907) : error 017: undefined symbol "engine" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1100) : error 017: undefined symbol "INI_String" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1111) : error 017: undefined symbol "INI_String" C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1122) : error 017: undefined symbol "INI_String" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Line 1100: INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
if(PlayerInfo[playerid][pVehicle1] != 0) { new model1 = PlayerInfo[playerid][pVehicle1Model]; new Float:car1x = PlayerInfo[playerid][pVehicle1X]; new Float:car1y = PlayerInfo[playerid][pVehicle1Y]; new Float:car1z = PlayerInfo[playerid][pVehicle1Z]; new Float:car1c = PlayerInfo[playerid][pVehicle1C]; new car1color1 = PlayerInfo[playerid][pVehicle1Color1]; new car1color2 = PlayerInfo[playerid][pVehicle1Color2]; new car1lock = PlayerInfo[playerid][pVehicle1Lock]; personalcar1[playerid] = CreateVehicle(model1, car1x, car1y, car1z, car1c, car1color1, car1color2, 999999); SetVehicleNumberPlate(personalcar1[playerid], PlayerInfo[playerid][pVehicle1Plate]); if(car1lock != 0) { GetVehicleParamsEx(personalcar1[playerid], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(personalcar1[playerid], engine, lights, alarm, 1, bonnet, boot, objective); } } if(PlayerInfo[playerid][pVehicle2] != 0) { new model2 = PlayerInfo[playerid][pVehicle2Model]; new Float:car2x = PlayerInfo[playerid][pVehicle2X]; new Float:car2y = PlayerInfo[playerid][pVehicle2Y]; new Float:car2z = PlayerInfo[playerid][pVehicle2Z]; new Float:car2c = PlayerInfo[playerid][pVehicle2C]; new car2color1 = PlayerInfo[playerid][pVehicle2Color1]; new car2color2 = PlayerInfo[playerid][pVehicle2Color2]; new car2lock = PlayerInfo[playerid][pVehicle2Lock]; personalcar2[playerid] = CreateVehicle(model2, car2x, car2y, car2z, car2c, car2color1, car2color2, 999999); SetVehicleNumberPlate(personalcar2[playerid], PlayerInfo[playerid][pVehicle2Plate]); if(car2lock != 0) { GetVehicleParamsEx(personalcar2[playerid], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(personalcar2[playerid], engine, lights, alarm, 1, bonnet, boot, objective); } } if(PlayerInfo[playerid][pVehicle3] != 0) { new model3 = PlayerInfo[playerid][pVehicle3Model]; new Float:car3x = PlayerInfo[playerid][pVehicle3X]; new Float:car3y = PlayerInfo[playerid][pVehicle3Y]; new Float:car3z = PlayerInfo[playerid][pVehicle3Z]; new Float:car3c = PlayerInfo[playerid][pVehicle3C]; new car3color1 = PlayerInfo[playerid][pVehicle3Color1]; new car3color2 = PlayerInfo[playerid][pVehicle3Color2]; new car3lock = PlayerInfo[playerid][pVehicle3Lock]; personalcar3[playerid] = CreateVehicle(model3, car3x, car3y, car3z, car3c, car3color1, car3color2, 999999); SetVehicleNumberPlate(personalcar3[playerid], PlayerInfo[playerid][pVehicle3Plate]); if(car3lock != 0) { GetVehicleParamsEx(personalcar3[playerid], engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(personalcar3[playerid], engine, lights, alarm, 1, bonnet, boot, objective); } } }
Alright so file system. What you need to look at is a tutorial, no matter what subject, but as long as it's for file systems, from the looks of it y_ini. This is the one I used back in the days before I knew what MySQL even was: https://sampforum.blast.hk/showthread.php?tid=273088
It's the same princip, vehicles... humans... NPC's... login information. It all leads to the same thing you are looking for, so no need for an exact tutorial with vehicle dealership being saved. Cheers and good luck. |