SA-MP Forums Archive
PersonalCar - 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: PersonalCar (/showthread.php?tid=303397)



PersonalCar - saringan_cs - 13.12.2011

Quote:

C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : error 028: invalid subscript (not an array or too many subscripts): "CarInfo"
C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : warning 215: expression has no effect
C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : error 001: expected token: ";", but found "]"
C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : error 029: invalid expression, assumed zero
C:\Users\Cbu-Samp\Desktop\filterscripts\carownership.pwn(272) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Quote:

public OnFilterScriptInit()
{
printf("Filterscript carownership.amx Initiated\n");
LoadCar();

for(new h = carsonserver; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
LoadComponents(h);
}
return 1;
}

This Are
Quote:

AddStaticVehicleEx(CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);




Re: PersonalCar - saringan_cs - 13.12.2011

new CarInfo;


Re: PersonalCar - saringan_cs - 13.12.2011

so??


Re: PersonalCar - eDz0r - 13.12.2011

pawn Код:
enum vInfo
{
vThing1,
vThing2,
vThing3,
};
new VehicleInfo[MAX_VEHICLES][vInfo];



Re: PersonalCar - saringan_cs - 13.12.2011

eDz0r da add al dj_one20 pls . ms