[Pomoc]Ucitavanje Vozila

Započeo Djordjevic97
10. Apr. 2014. Zaključano
195
pregleda
4
postova
Djordjevic97
2
Wheel Man
10. Apr. 2014.
Skripta koju koristim: CLRP
Detaljan opis problema: Zelim da namestim da prilikom ulaska na server igrac koji poseduje vozilo da mu se ucita, trenutno mi se ucitavaju vozila kada upalim server i nema veze da li je vlasnik vozila na serveru ili ne njegovo vozilo je ucitano i stoji na serveru.
Dio skripte:
Ovo treba da bude pod OnPlayerConnect
	////////////////////////////////AUTA UCITAVANJE//////////////////////////////////
new vFile;
new igrac;
        format(vFile, sizeof(vFile), AUTO_FILE, igrac);
        if(fexist(vFile))
        {
            INI_ParseFile(vFile, "UcitajVozila", .bExtra = true, .extra = igrac);
            VoziloInfo = CreateVehicle(VoziloInfo,VoziloInfo,VoziloInfo,VoziloInfo,VoziloInfo,VoziloInfo,VoziloInfo,30000);
}
////////////////////////////////MOTOR UCITAVANJE/////////////////////////////////
new mFile;
        format(mFile, sizeof(mFile), MOTOR_FILE, igrac);
        if(fexist(mFile))
        {
            INI_ParseFile(mFile, "UcitajMotore", .bExtra = true, .extra = igrac);
            MotorInfo = CreateVehicle(MotorInfo,MotorInfo,MotorInfo,MotorInfo,MotorInfo,MotorInfo,MotorInfo,30000);
}
///////////////////////////BICIKLA UCITAVANJE////////////////////////////////////
new biFile;
        format(biFile, sizeof(biFile), BICIKLA_FILE, igrac);
        if(fexist(biFile))
        {
            INI_ParseFile(biFile, "UcitajBicikla", .bExtra = true, .extra = igrac);
            BiciklaInfo = CreateVehicle(BiciklaInfo,BiciklaInfo,BiciklaInfo,BiciklaInfo,BiciklaInfo,BiciklaInfo,BiciklaInfo,30000);
}
////////////////////////AVIONI UCITAVANJE////////////////////////////////////////
new avFile;
        format(avFile, sizeof(avFile), AVION_FILE, igrac);
        if(fexist(avFile))
        {
            INI_ParseFile(avFile, "UcitajAvione", .bExtra = true, .extra = igrac);
            AvionInfo = CreateVehicle(AvionInfo,AvionInfo,AvionInfo,AvionInfo,AvionInfo,AvionInfo,AvionInfo,30000);
}
//////////////////////PLOVILA UCITAVANJE//////////////////////////////////////////
new plFile;
        format(plFile, sizeof(plFile), PLOVILA_FILE, igrac);
        if(fexist(plFile))
        {
            INI_ParseFile(plFile, "UcitajPlovila", .bExtra = true, .extra = igrac);
            PlovilaInfo = CreateVehicle(PlovilaInfo,PlovilaInfo,PlovilaInfo,PlovilaInfo,PlovilaInfo,PlovilaInfo,PlovilaInfo,30000);
}

Errori:
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12011) : warning 217: loose indentation
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12016) : error 035: argument type mismatch (argument 5)
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12017) : error 033: array must be indexed (variable "igrac")
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12024) : error 035: argument type mismatch (argument 5)
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12025) : error 033: array must be indexed (variable "igrac")
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12032) : error 035: argument type mismatch (argument 5)
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12033) : error 033: array must be indexed (variable "igrac")
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12040) : error 035: argument type mismatch (argument 5)
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12041) : error 033: array must be indexed (variable "igrac")
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12048) : error 035: argument type mismatch (argument 5)
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12049) : error 033: array must be indexed (variable "igrac")
C:\Users\Lesa\Desktop\Igre\BCRP v1.0.2 © 2014 by LeSa\gamemodes\LesaRP.pwn(12053) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

10 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno): Ukoliko nesto fali napisite u komentar da mogu da postavim to. 🙂
Djordjevic97
2
Wheel Man
12. Apr. 2014.
BUMP
GGC
5
Godfather
12. Apr. 2014.
Parsas njegova vozila u OnPlayerLogin/OnPlayerConnect i kreiras ih (stvoris). Kod OnPlayerDisconnect ih saveas i destroyas.
Djordjevic97
2
Wheel Man
12. Apr. 2014.
Stavio sam pod OnPlayerConnect ali mi izbaci one errore  😢

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha