15.04.2012, 12:30
Hello , When i try To compile GameMode gave :
And if I put /* and */ in front of code work
The lines are :
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.
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;
}
*/