[Ayuda]Carros y compilacion en mi gm
#1

no se si esta mal hacer dos post seguidos para diferentes funciones ya que lei las reglas y no vi nada de eso pero por si acaso lo hago asi si esta mal corrijanme porfavor 1ero error en compilacion

ayuda no se que pasa aqui me da un error al compilar y no se de que es este es el error

Код:
C:\Documents and Settings\CARLOS LUIS\Mis documentos\Downloads\Nueva carpeta\CIUDAD MARAVILLA 0.3D\CIUDAD MARAVILLA 0.3D\gamemodes\CiudadMaravilla.pwn(999) : error 001: expected token: "}", but found "-string-"
C:\Documents and Settings\CARLOS LUIS\Mis documentos\Downloads\Nueva carpeta\CIUDAD MARAVILLA 0.3D\CIUDAD MARAVILLA 0.3D\gamemodes\CiudadMaravilla.pwn(1000) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
bueno espero me ayuden y este otro error es de los carros ya que si tu te montas en un carro de faccion o de alguna persona o de renta en los de renta no hay que pagar nada osea si se oude que pagar pero lo puedes usar sin pagar y sin encender el motor y como pasa eso pueden arrancar de una vez ayuda y roban los autos muy facil

no se si sea esta que pongo pero la pondre de todos modos
Код:
public LoadCar()
{
	new arrCoords[13][64];
	new strFromFile2[256];
	new File: file = fopen("cars.cfg", io_read);
	if (file)
	{
		new idx = VV_DESDE;
		while (idx < sizeof(CarInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, ',');
			CarInfo[idx][cModel] = strval(arrCoords[0]);
			CarInfo[idx][cLocationx] = floatstr(arrCoords[1]);
			CarInfo[idx][cLocationy] = floatstr(arrCoords[2]);
			CarInfo[idx][cLocationz] = floatstr(arrCoords[3]);
			CarInfo[idx][cAngle] = floatstr(arrCoords[4]);
			CarInfo[idx][cColorOne] = strval(arrCoords[5]);
			CarInfo[idx][cColorTwo] = strval(arrCoords[6]);
			strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
			strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255);
			CarInfo[idx][cValue] = strval(arrCoords[9]);
			CarInfo[idx][cLicense] = strval(arrCoords[10]);
			CarInfo[idx][cOwned] = strval(arrCoords[11]);
			CarInfo[idx][cLock] = strval(arrCoords[12]);
			printf("ID: %d Owner:%s Modelo: %s",idx,CarInfo[idx][cOwner],CarInfo[idx][cDescription]);
Reply
#2

pasa las lineas no somos adivinos -.-
Reply
#3

ok si error mio perdon
Reply
#4

Deja el Codigo donde te da el error porfavor y te ayudamos porq con eso no hacemos nada :S.

EDITO:

Код:
public LoadCar()
{
new arrCoords[13][64];
new strFromFile2[256];
new File: file = fopen("cars.cfg", io_read);
if (file)
{
new idx = VV_DESDE;
while (idx < sizeof(CarInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
CarInfo[idx][cModel] = strval(arrCoords[0]);
CarInfo[idx][cLocationx] = floatstr(arrCoords[1]);
CarInfo[idx][cLocationy] = floatstr(arrCoords[2]);
CarInfo[idx][cLocationz] = floatstr(arrCoords[3]);
CarInfo[idx][cAngle] = floatstr(arrCoords[4]);
CarInfo[idx][cColorOne] = strval(arrCoords[5]);
CarInfo[idx][cColorTwo] = strval(arrCoords[6]);
strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255);
CarInfo[idx][cValue] = strval(arrCoords[9]);
CarInfo[idx][cLicense] = strval(arrCoords[10]);CarInfo[idx][cOwned] = strval(arrCoords[11]);
CarInfo[idx][cLock] = strval(arrCoords[11]);
idx++;
}
fclose(file);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)