[HELP] TuneCar 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: [HELP] TuneCar Problem. (
/showthread.php?tid=546586)
[HELP] TuneCar Problem. -
GBLTeam - 16.11.2014
Im making an dialog for tuning cars, but i got some problem. Do i need to use like:
pawn Код:
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\XBRP.pwn(37618) : error 028: invalid subscript (not an array or too many subscripts): "componentid"
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\XBRP.pwn(37618) : warning 215: expression has no effect
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\XBRP.pwn(37618) : error 001: expected token: ";", but found "]"
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\XBRP.pwn(37618) : error 029: invalid expression, assumed zero
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\XBRP.pwn(37618) : fatal error 107: too many error messages on one line
pawn Код:
if(listitem == 0)// GUMI
{//
new componentid;
new vehicleid = GetPlayerVehicleID(playerid);
new id = GetVehicleID(vehicleid);
AddVehicleComponent(VehicleID[id], componentid[1073]);
VehicleMods[id][GetVehicleComponentType(1073)];
SaveVehicle(id);
}
Re : [HELP] TuneCar Problem. -
Dutheil - 16.11.2014
pawn Код:
if(listitem == 0)// GUMI
{
new componentid = 1073;
new vehicleid = GetPlayerVehicleID(playerid);
new id = GetVehicleID(vehicleid);
AddVehicleComponent(VehicleID[id], componentid);
VehicleMods[id][GetVehicleComponentType(componentid)] = componentid;
SaveVehicle(id);
}
Re: [HELP] TuneCar Problem. -
GBLTeam - 16.11.2014
That works but what about more items in lime?
pawn Код:
if(listitem == 17) return CarmodDialog(playerid);
new componentid[] = {1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1096,1097,1098,1079};
new vehicleid = GetPlayerVehicleID(playerid);
new id = GetVehicleID(vehicleid);
AddVehicleComponent(VehicleID[id], componentid[listitem]);
VehicleMods[id][GetVehicleComponentType(1073)];
SaveVehicle(id);
Re : [HELP] TuneCar Problem. -
Dutheil - 16.11.2014
Код:
if(listitem == 17)
componentid[listitem]);