Skripta koju koristim: CLRP
Detaljan opis problema: Pokusavam rjesiti onaj bug sa CoS-om, i znam gdje je problem, u forwarde sam stavio forward LoadCar();
i pod OnGameModeInit LoadCar();
Dio skripte: Eror C:\Documents and Settings\Vegas\Desktop\City Life RolePlay v3.0\City Life RolePlay v3.0\gamemodes\CLRP.pwn(13189) : error 004: function "LoadCar" is not implemented
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Neke slike/video za lakse dobivanje pomoci(neobavezno):
nisi ubacio public LoadCar
Citat: [BD:RP]Mr.Gagi poslato April 01, 2012, 12:13:48 POSLE PODNE
nisi ubacio public LoadCar
Da li bi mi mogao objasniti sta da stavim pod taj public, jer je on izgleda stavljao taj svoj neki CoS
forward LoadCar();
aj dodaj ovo kod forward i probaj tad :/
LoL, to sam gore naveo da imam..
Citat: Vegas. poslato April 01, 2012, 12:15:49 POSLE PODNE
Citat: [BD:RP]Mr.Gagi poslato April 01, 2012, 12:13:48 POSLE PODNE
nisi ubacio public LoadCar
Da li bi mi mogao objasniti sta da stavim pod taj public, jer je on izgleda stavljao taj svoj neki CoS
Pa to sto treba da ucitava ta kola sve varijable koje cuvas to ucitas.
Dali bi ja mogao da ubacim ovo iz Raven'sa jer se oba od LARP public LoadCar()
{
new file[26];
for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
{
format(file, sizeof(file),"LARP/Vehicles/%d.ini", idx)
if(dini_Exists(file))
{
CarInfo[idx][cModel] = dini_Int(file,"Model");
CarInfo[idx][cLocationx] = dini_Float(file,"Location_X");
CarInfo[idx][cLocationy] = dini_Float(file,"Location_Y");
CarInfo[idx][cLocationz] = dini_Float(file,"Location_Z");
CarInfo[idx][cAngle] = dini_Float(file,"Angle");
CarInfo[idx][cColorOne] = dini_Int(file,"Color_1");
CarInfo[idx][cColorTwo] = dini_Int(file,"Color_2");
strmid(CarInfo[idx][cOwner], dini_Get(file,"Owner"), 0, strlen(dini_Get(file,"Owner")), 255);
CarInfo[idx][cOwned] = dini_Int(file,"Owned");
CarInfo[idx][cLock] = dini_Int(file,"Locked");
CarInfo[idx][cPaintjob] = dini_Int(file,"Paintjob");
CarInfo[idx][cVirWorld] = dini_Int(file,"VirtualWorld");
CarInfo[idx][cComponent0] = dini_Int(file,"Component0");
CarInfo[idx][cComponent1] = dini_Int(file,"Component1");
CarInfo[idx][cComponent2] = dini_Int(file,"Component2");
CarInfo[idx][cComponent3] = dini_Int(file,"Component3");
CarInfo[idx][cComponent4] = dini_Int(file,"Component4");
CarInfo[idx][cComponent5] = dini_Int(file,"Component5");
CarInfo[idx][cComponent6] = dini_Int(file,"Component6");
CarInfo[idx][cComponent7] = dini_Int(file,"Component7");
CarInfo[idx][cComponent8] = dini_Int(file,"Component8");
CarInfo[idx][cComponent9] = dini_Int(file,"Component9");
CarInfo[idx][cComponent10] = dini_Int(file,"Component10");
CarInfo[idx][cComponent11] = dini_Int(file,"Component11");
CarInfo[idx][cComponent12] = dini_Int(file,"Component12");
CarInfo[idx][cComponent13] = dini_Int(file,"Component13");
CarInfo[idx][cCode] = dini_Int(file,"SecurityCode");
}
}
print("[SCRIPT]: Loaded Cars");
return 1;
}
Pocetnik sam i ne bi znao napraviti te sve varijabile...
Citat: Vegas. poslato April 01, 2012, 12:25:08 POSLE PODNE
Dali bi ja mogao da ubacim ovo iz Raven'sa jer se oba od LARP public LoadCar()
{
new file[26];
for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
{
format(file, sizeof(file),"LARP/Vehicles/%d.ini", idx)
if(dini_Exists(file))
{
CarInfo[idx][cModel] = dini_Int(file,"Model");
CarInfo[idx][cLocationx] = dini_Float(file,"Location_X");
CarInfo[idx][cLocationy] = dini_Float(file,"Location_Y");
CarInfo[idx][cLocationz] = dini_Float(file,"Location_Z");
CarInfo[idx][cAngle] = dini_Float(file,"Angle");
CarInfo[idx][cColorOne] = dini_Int(file,"Color_1");
CarInfo[idx][cColorTwo] = dini_Int(file,"Color_2");
strmid(CarInfo[idx][cOwner], dini_Get(file,"Owner"), 0, strlen(dini_Get(file,"Owner")), 255);
CarInfo[idx][cOwned] = dini_Int(file,"Owned");
CarInfo[idx][cLock] = dini_Int(file,"Locked");
CarInfo[idx][cPaintjob] = dini_Int(file,"Paintjob");
CarInfo[idx][cVirWorld] = dini_Int(file,"VirtualWorld");
CarInfo[idx][cComponent0] = dini_Int(file,"Component0");
CarInfo[idx][cComponent1] = dini_Int(file,"Component1");
CarInfo[idx][cComponent2] = dini_Int(file,"Component2");
CarInfo[idx][cComponent3] = dini_Int(file,"Component3");
CarInfo[idx][cComponent4] = dini_Int(file,"Component4");
CarInfo[idx][cComponent5] = dini_Int(file,"Component5");
CarInfo[idx][cComponent6] = dini_Int(file,"Component6");
CarInfo[idx][cComponent7] = dini_Int(file,"Component7");
CarInfo[idx][cComponent8] = dini_Int(file,"Component8");
CarInfo[idx][cComponent9] = dini_Int(file,"Component9");
CarInfo[idx][cComponent10] = dini_Int(file,"Component10");
CarInfo[idx][cComponent11] = dini_Int(file,"Component11");
CarInfo[idx][cComponent12] = dini_Int(file,"Component12");
CarInfo[idx][cComponent13] = dini_Int(file,"Component13");
CarInfo[idx][cCode] = dini_Int(file,"SecurityCode");
}
}
print("[SCRIPT]: Loaded Cars");
return 1;
}
Pocetnik sam i ne bi znao napraviti te sve varijabile...
Otkud znam sta sve u modu ima trebao bi na taj nacin da uradis pa ako je sve isto onda prebaci i probaj.
Evo ubacio sam i dobio samo ove errore, sad cu ih probat ispraviti msm da znamm ... C:\Documents and Settings\Vegas\Desktop\City Life RolePlay v3.0\City Life RolePlay v3.0\gamemodes\CLRP.pwn(12971) : error 017: undefined symbol "CarInfo"
C:\Documents and Settings\Vegas\Desktop\City Life RolePlay v3.0\City Life RolePlay v3.0\gamemodes\CLRP.pwn(12971) : error 036: empty statement
C:\Documents and Settings\Vegas\Desktop\City Life RolePlay v3.0\City Life RolePlay v3.0\gamemodes\CLRP.pwn(12971) : error 017: undefined symbol "idx"
C:\Documents and Settings\Vegas\Desktop\City Life RolePlay v3.0\City Life RolePlay v3.0\gamemodes\CLRP.pwn(12971) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.