BIG PROBLEM! -
RaulSTARs - 15.04.2012
Hello , When i try To compile GameMode gave :
pawn Код:
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9238) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9254) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9586) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9687) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9850) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9889) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9904) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9924) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9928) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9957) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9979) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(9983) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10013) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10032) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10036) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10063) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10090) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10094) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10129) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10156) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10160) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10195) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10240) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10244) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10293) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10349) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(10397) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13378) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13382) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13431) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13467) : warning 219: local variable "coordsstring" shadows a variable at a preceding level
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13500) : error 010: invalid function or declaration
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13503) : error 010: invalid function or declaration
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13503) : error 010: invalid function or declaration
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13503 -- 13535) : error 010: invalid function or declaration
C:\Users\raul\Server samp\Alt srv\gamemodes\gamemode.pwn(13503 -- 13535) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
And if I put /* and */ in front of code work
The lines are :
pawn Код:
/* new idx = 224;
while (idx < sizeof(CarInfo))
{
new coordsstring[256];
formatt(cooordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
CarInfo[idx][cModel],//
CarInfo[idx][cLocationx],//
CarInfo[idx][cLocationy],//
CarInfo[idx][cLocationz],//
CarInfo[idx][cAngle],//
CarInfo[idx][cColorOne],//
CarInfo[idx][cColorTwo],//
CarInfo[idx][cOwner],//
CarInfo[idx][cDescription],//
CarInfo[idx][cValue],//
CarInfo[idx][cLicense],//
CarInfo[idx][cOwned],//
CarInfo[idx][cLock],
CarInfo[idx][mod1],
CarInfo[idx][mod2],
CarInfo[idx][mod3],
CarInfo[idx][mod4],
CarInfo[idx][mod5],
CarInfo[idx][mod6],
CarInfo[idx][mod7],
CarInfo[idx][mod8],
CarInfo[idx][mod9],
CarInfo[idx][mod10],
CarInfo[idx][mod11],
CarInfo[idx][mod12],
CarInfo[idx][mod13],
CarInfo[idx][mod14],
CarInfo[idx][mod15],
CarInfo[idx][mod16],
CarInfo[idx][mod17],
CarInfo[idx][paintjob]);
if(idx == 224)
{
file2 = fopen("cfg/cars.cfg", io_write);
}
else
{
file2 = fopen("cfg/cars.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
*/
Re: BIG PROBLEM! -
RaulSTARs - 15.04.2012
Up. please help
Re: BIG PROBLEM! -
denNorske - 15.04.2012
There were so many errors there, that i cant get it.. Looks like there is something with the "idx" string to do.
Re: BIG PROBLEM! -
RaulSTARs - 15.04.2012
Yea... but idk what can be
Re: BIG PROBLEM! -
denNorske - 15.04.2012
Can you paste the lines 13500 to 13503 ? need to check only those 3 lines
Re: BIG PROBLEM! -
RaulSTARs - 15.04.2012
1500
Код:
while (idx < sizeof(CarInfo))
1501
1502
Код:
new coordsstring[256];
1503
Код:
format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
Re: BIG PROBLEM! -
denNorske - 15.04.2012
Have no clue at all :/
Let experienced people take a look :/
Re: BIG PROBLEM! -
Faisal_khan - 15.04.2012
Why did you put /* and */ with the idx? Remove it. And paste the errors.
Re: BIG PROBLEM! -
RaulSTARs - 15.04.2012
Faisal , if is removed gave first errors with local variable , i posted with */ because I compiled again... and i didn't removed. But if I remove /* gave errors!
Re: BIG PROBLEM! -
nilanjay - 15.04.2012
pawn Код:
new idx = 224;
while (idx < sizeof(CarInfo))
{
new coordsstring[256];
formatt(cooordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
CarInfo[idx][cModel],//
CarInfo[idx][cLocationx],//
CarInfo[idx][cLocationy],//
CarInfo[idx][cLocationz],//
CarInfo[idx][cAngle],//
CarInfo[idx][cColorOne],//
CarInfo[idx][cColorTwo],//
CarInfo[idx][cOwner],//
CarInfo[idx][cDescription],//
CarInfo[idx][cValue],//
CarInfo[idx][cLicense],//
CarInfo[idx][cOwned],//
CarInfo[idx][cLock],
CarInfo[idx][mod1],
CarInfo[idx][mod2],
CarInfo[idx][mod3],
CarInfo[idx][mod4],
CarInfo[idx][mod5],
CarInfo[idx][mod6],
CarInfo[idx][mod7],
CarInfo[idx][mod8],
CarInfo[idx][mod9],
CarInfo[idx][mod10],
CarInfo[idx][mod11],
CarInfo[idx][mod12],
CarInfo[idx][mod13],
CarInfo[idx][mod14],
CarInfo[idx][mod15],
CarInfo[idx][mod16],
CarInfo[idx][mod17],
CarInfo[idx][paintjob]);
if(idx == 224)
{
file2 = fopen("cfg/cars.cfg", io_write);
}
else
{
file2 = fopen("cfg/cars.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
Try this