[Pomoc] Problem s mismatchom

Započeo ¤EG¤Ovca.ini, Januar 30, 2013, 11:33:25 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Jedan edit moda..
Detaljan opis problema: Pa ovako sad sam naso jedan stari mod kojeg sam edito i kojeg se sjecam da mi se svidjao pa sam ga odlucio dovrsiti, no imam neke erore koje neznam rijesiti...
Dio skripte:

Errori:
C:\Users\*******\Desktop\Ostalo\Downloads\Roleplay\EGRP BY KRUNSY\gamemodes\rp.pwn(2382) : error 035: argument type mismatch (argument 2)
C:\Users\*******\Desktop\Ostalo\Downloads\Roleplay\EGRP BY KRUNSY\gamemodes\rp.pwn(2431) : error 035: argument type mismatch (argument 2)
C:\Users\*******\Desktop\Ostalo\Downloads\Roleplay\EGRP BY KRUNSY\gamemodes\rp.pwn(2648) : error 035: argument type mismatch (argument 2)
C:\Users\*******\Desktop\Ostalo\Downloads\Roleplay\EGRP BY KRUNSY\gamemodes\rp.pwn(5765) : error 035: argument type mismatch (argument 2)
C:\Users\*******\Desktop\Ostalo\Downloads\Roleplay\EGRP BY KRUNSY\gamemodes\rp.pwn(5766) : error 035: argument type mismatch (argument 2)


Kod svake linije po redu(svi su razliciti skoro):
2382: strcpy(VehicleOwner[freeid], sizeof(VehicleOwner[]), PlayerName(playerid));
2431: strcpy(VehicleOwner[vehicleid], sizeof(VehicleOwner[]), PlayerName(playerid));
2648: strcpy(VehicleNumberPlate[id], sizeof(VehicleNumberPlate[]), params);
5765: else if(strcmp(line, "Owner=", false, 6) == 0) strcpy(VehicleOwner[i], sizeof(VehicleOwner[]), line[6]);
5766: else if(strcmp(line, "NumberPlate=", false, 12) == 0) strcpy(VehicleNumberPlate[i], sizeof(VehicleNumberPlate[]), line[12]);

Evo defineovi tih linija da vam bude lakse:
new VehicleOwner[MAX_DVEHICLES][MAX_PLAYER_NAME];
new VehicleNumberPlate[MAX_DVEHICLES][16];


case 4:
{
if(strlen(params) < 1 || strlen(params) > 8)
{
ShowErrorDialog(playerid, "Pogresna duljina!");
return 1;
}
strcpy(VehicleNumberPlate[id], sizeof(VehicleNumberPlate[]), params);
SaveVehicle(id);
SetVehicleNumberPlate(VehicleID[id], params);
SetVehicleToRespawn(VehicleID[id]);
ShowDialog(playerid, DIALOG_EDITVEHICLE);
} (ovo je s linije 2648)


linije 5766 i 5767:
[code]else if(strcmp(line, "Owner=", false, 6) == 0) strcpy(VehicleOwner[i], sizeof(VehicleOwner[]), line[6]);
else if(strcmp(line, "NumberPlate=", false, 12) == 0) strcpy(VehicleNumberPlate[i], sizeof(VehicleNumberPlate[]), line[12]);


Neke slike/video za lakse dobivanje pomoci(neobavezno):

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

Mislim da si izostavio nesto na tim linijama , nmg sad da ti kazem tacno sta na mob sam uso ...

zasto onda govoris ako nemozes da kazes?? nisam nista izostavio.. kod se cini ok provjerio sam 100 puta vec...

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

na svakoj liniji gde ti baca error se vodi greska oko drugog parametra

Postaj svoju strcpy() funkciju.

Last nick: Paradox