Jump to content
  • 0

[GF/RP] System Car Personal


Question

Posted

The Errors

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(422 -- 423) : error 001: expected token: ",", but found "-identifier-"

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 424) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 425) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 426) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 427) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 428) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 429) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 430) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 431) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 432) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 433) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 434) : warning 215: expression has no effect

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(423 -- 436) : error 029: invalid expression, assumed zero

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(436 -- 437) : error 028: invalid subscript (not an array or too many subscripts): "idx"

C:\Users\Best-Life\Desktop\filterscripts\carownership.pwn(436 -- 437) : fatal error 107: too many error messages on one line

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

4 Errors.

lines

public OnPropUpdate()

{

new idx;

new File: file2;

idx = carsonserver;

while (idx < sizeof(CarInfo))

{

new coordsstring[256];

422- format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%d,%d\n"

423- CarInfo[idx][cModel],

424- CarInfo[idx][cLocationx],

425- CarInfo[idx][cLocationy],

426- CarInfo[idx][cLocationz],

427- CarInfo[idx][cAngle],

428- CarInfo[idx][cColorOne],

429- CarInfo[idx][cColorTwo],

430- CarInfo[idx][cOwner],

431- CarInfo[idx][cDescription],

432- CarInfo[idx][cValue],

433-  CarInfo[idx][cOwned],

434- CarInfo[idx][cLock],

        435-

436- if(idx == carsonserver)

437 {

438 file2 = fopen("masini.cfg", io_write);

439 }

440 else

.... {

.... file2 = fopen("masini.cfg", io_append);

..... }

..... fwrite(file2, coordsstring);

idx++;

fclose(file2);

}

return 1;

}

these don't are the Effect

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][cOwned],

CarInfo[idx][cLock],

4 answers to this question

Recommended Posts

Posted

format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%d,%d\n", <- virgula aici

Inchide si paranteza la format ..

Posted

am obesrvat ca am sters cv in plus si am ajuns la  3 warninguri

[pawn]C:\Users\Best-Life\Desktop\carownership.pwn(638) : warning 204: symbol is assigned a value that is never used: "thiscar"

C:\Users\Best-Life\Desktop\carownership.pwn(747) : warning 204: symbol is assigned a value that is never used: "thiscar"

C:\Users\Best-Life\Desktop\carownership.pwn(850) : warning 225: unreachable code

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Warnings.

[/pawn]

638

[pawn]     new thiscar = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);[/pawn]

747

[pawn] new thiscar = CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],CarInfo[vehid][cColorOne],CarInfo[vehid][cColorTwo],60000);[/pawn]

850

[pawn] if(CarInfo[idcar][cOwned]==1)[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.