Jump to content

Question

Posted

TOTE LINIILE ASTEA SUN CA ACEASTA:

[pawn]CreateObject(10009, 1033.8000488281, -660, 131.5, 0, 0, 170);[/pawn]

Adica obiecte

[pawn]

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(45867) : warning 215: expression has no effect

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(45872) : warning 215: expression has no effect

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(45888) : warning 215: expression has no effect

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(45893) : warning 215: expression has no effect

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(45912) : warning 215: expression has no effect

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(45921) : warning 215: expression has no effect

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(46717) : error 010: invalid function or declaration

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(46820) : error 010: invalid function or declaration

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(46831) : error 010: invalid function or declaration

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(46833) : error 010: invalid function or declaration

C:\Users\Stefan\Desktop\RP\swaG RPG\gamemodes\Rp.pwn(46844) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

5 Errors.

[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

15 answers to this question

Recommended Posts

Posted

Unde sunt obiectele astea? Normal ele trebuie sa fie la OnGameModeInit daca e GM daca nu la OnFilterScriptInit daca e FS

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted

Cred ca vine asa [pawn]CreateObject(10009, 1033.80, -660.00, 131.50,  0.00, 0.00, 170.00);[/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

nu imi mai trebuie sa pun obiectele alea dar am o alta intrebare as vrea sa pun acest fs pe GM meu http://www.sa-mp.ro/forum/index.php?topic=12269.0

Dar la OnGameModeInit nu am la urma return 1;

asa arata la mine

[pawn]public OnGameModeInit()

{

    new count;

if(!dini_Exists("Territories.cfg")){

dini_Create("Territories.cfg");}

new Tloader[128];

    for(new t = 0;t<MAX_TURF;t++)

{

        format(Tloader,sizeof(Tloader),"Owner_%d",t); TurfInfo[t][Owner] = dini_Int("Territories.cfg",Tloader);

        format(Tloader,sizeof(Tloader),"MinX_%d",t); TurfInfo[t][MinX] = dini_Float("Territories.cfg",Tloader);

        format(Tloader,sizeof(Tloader),"MinY_%d",t); TurfInfo[t][MinY] = dini_Float("Territories.cfg",Tloader);

        format(Tloader,sizeof(Tloader),"MaxX_%d",t); TurfInfo[t][MaxX] = dini_Float("Territories.cfg",Tloader);

        format(Tloader,sizeof(Tloader),"MaxY_%d",t); TurfInfo[t][MaxY] = dini_Float("Territories.cfg",Tloader);

        format(Tloader,sizeof(Tloader),"CodTime_%d",t); TurfInfo[t][CodTime] = dini_Int("Territories.cfg",Tloader);

        if(TurfInfo[t][Owner] != 0)

    {

        count ++;

  TurfID[count] = GangZoneCreate(TurfInfo[count][MinX],TurfInfo[count][MinY],TurfInfo[count][MaxX],TurfInfo[count][MaxY]);

    printf("ID:%d Own:%d Mnx:%f MnY:%f MxX:%f MxY:%f",count,TurfInfo[count][Owner],TurfInfo[count][MinX],TurfInfo[count][MinY],TurfInfo[count][MaxX],TurfInfo[count][MaxY]);

}

}

    for(new n = 0; n < MAX_OBJ; n++) dGunData[n][ObjID] = -1;

    #if defined SAVING

new File:file = fopen("PickUp&DropGuns.ini", io_read);

    if(file)

    {

        new buffer[256], FileCoords[5][20];

        for(new g = 0; g < MAX_OBJ; g++)

        {

            fread(file, buffer);

            split(buffer, FileCoords, ',');

            dGunData[g][ObjPos][0] = floatstr(FileCoords[0]);

dGunData[g][ObjPos][1] = floatstr(FileCoords[1]);

dGunData[g][ObjPos][2] = floatstr(FileCoords[2]);

dGunData[g][ObjData][0] = strval(FileCoords[3]);

dGunData[g][ObjData][1] = strval(FileCoords[4]);

if(dGunData[g][ObjData][0] > 0 && dGunData[g][ObjData][1] != 0 && dGunData[g][ObjPos][0] != 0)

{

dGunData[g][ObjID] = CreateObject(GunObjects[dGunData[g][ObjData][0]], dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-1, 93.7, 120.0, 120.0);

printf("%s Loaded: %f,%f,%f", GunNames[dGunData[g][ObjData][0]], dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-1);

}

        }

    }

    else print("Failed to open PickUp&DropGuns.ini");

#endif

    Baller = 999;

DestroyObject(Ball);

    new string[MAX_PLAYER_NAME];

    new string1[MAX_PLAYER_NAME];

    ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*9000000*60,true);

    WebAn = SetTimer("WS", 9000000, 1);

rwp = TextDrawCreate(22.000000, 124.000000, "Riwal War Possesion");

TextDrawBackgroundColor(rwp, 255);

TextDrawFont(rwp, 0);

TextDrawLetterSize(rwp, 0.330000, 1.200000);

TextDrawColor(rwp, -1);

TextDrawSetOutline(rwp, 1);

TextDrawSetProportional(rwp, 1);

TextDrawUseBox(rwp, 1);

TextDrawBoxColor(rwp, 60);

TextDrawTextSize(rwp, 174.000000, -1.000000);

ykzt = TextDrawCreate(22.000000, 140.000000, "Yakuza:");

TextDrawBackgroundColor(ykzt, 255);

TextDrawFont(ykzt, 1);

TextDrawLetterSize(ykzt, 0.280000, 1.100000);

TextDrawColor(ykzt, 11862271);

TextDrawSetOutline(ykzt, 1);

TextDrawSetProportional(ykzt, 1);

TextDrawUseBox(ykzt, 1);

TextDrawBoxColor(ykzt, 60);

TextDrawTextSize(ykzt, 174.000000, 4.000000);

lcnt = TextDrawCreate(22.000000, 154.500000, "La Cosa Nostra:");

TextDrawBackgroundColor(lcnt, 255);

TextDrawFont(lcnt, 1);

TextDrawLetterSize(lcnt, 0.280000, 1.100000);

TextDrawColor(lcnt, -512360193);

TextDrawSetOutline(lcnt, 1);

TextDrawSetProportional(lcnt, 1);

TextDrawUseBox(lcnt, 1);

TextDrawBoxColor(lcnt, 60);

TextDrawTextSize(lcnt, 174.000000, 4.000000);

ykzpos = TextDrawCreate(63.000000, 141.000000, "100%");

TextDrawBackgroundColor(ykzpos, 255);

TextDrawFont(ykzpos, 2);

TextDrawLetterSize(ykzpos, 0.360000, 1.100000);

TextDrawColor(ykzpos, -1);

TextDrawSetOutline(ykzpos, 1);

TextDrawSetProportional(ykzpos, 1);

lcnpos = TextDrawCreate(48.000000, 155.000000, "0%");

TextDrawBackgroundColor(lcnpos, 255);

TextDrawFont(lcnpos, 2);

TextDrawLetterSize(lcnpos, 0.360000, 1.100000);

TextDrawColor(lcnpos, -1);

TextDrawSetOutline(lcnpos, 1);

TextDrawSetProportional(lcnpos, 1);

presret = TextDrawCreate(22.000000, 169.000000, "Press RETURN to exit this message");

TextDrawBackgroundColor(presret, 255);

TextDrawFont(presret, 1);

TextDrawLetterSize(presret, 0.250000, 1.400000);

TextDrawColor(presret, -1);

TextDrawSetOutline(presret, 1);

TextDrawSetProportional(presret, 1);

TextDrawUseBox(presret, 1);

TextDrawBoxColor(presret, 60);

TextDrawTextSize(presret, 174.000000, 4.000000);

rwpcb = TextDrawCreate(22.000000, 124.000000, "Riwal War Possesion");

TextDrawBackgroundColor(rwpcb, 255);

TextDrawFont(rwpcb, 0);

TextDrawLetterSize(rwpcb, 0.330000, 1.200000);

TextDrawColor(rwpcb, -1);

TextDrawSetOutline(rwpcb, 1);

TextDrawSetProportional(rwpcb, 1);

TextDrawUseBox(rwpcb, 1);

TextDrawBoxColor(rwpcb, 60);

TextDrawTextSize(rwpcb, 174.000000, -1.000000);

czt = TextDrawCreate(22.000000, 140.000000, "Crips:");

TextDrawBackgroundColor(czt, 255);

TextDrawFont(czt, 1);

TextDrawLetterSize(czt, 0.280000, 1.100000);

TextDrawColor(czt, 3963903);

TextDrawSetOutline(czt, 1);

TextDrawSetProportional(czt, 1);

TextDrawUseBox(czt, 1);

TextDrawBoxColor(czt, 60);

TextDrawTextSize(czt, 174.000000, 4.000000);

bzt = TextDrawCreate(22.000000, 154.500000, "Bloods:");

TextDrawBackgroundColor(bzt, 255);

TextDrawFont(bzt, 1);

TextDrawLetterSize(bzt, 0.280000, 1.100000);

TextDrawColor(bzt, -5712897);

TextDrawSetOutline(bzt, 1);

TextDrawSetProportional(bzt, 1);

TextDrawUseBox(bzt, 1);

TextDrawBoxColor(bzt, 60);

TextDrawTextSize(bzt, 174.000000, 4.000000);

presretcb = TextDrawCreate(22.000000, 169.000000, "Press RETURN to exit this message");

TextDrawBackgroundColor(presretcb, 255);

TextDrawFont(presretcb, 1);

TextDrawLetterSize(presretcb, 0.250000, 1.399999);

TextDrawColor(presretcb, -1);

TextDrawSetOutline(presretcb, 1);

TextDrawSetProportional(presretcb, 1);

TextDrawUseBox(presretcb, 1);

TextDrawBoxColor(presretcb, 60);

TextDrawTextSize(presretcb, 174.000000, 4.000000);

czpos = TextDrawCreate(53.000000, 141.000000, "100%");

TextDrawBackgroundColor(czpos, 255);

TextDrawFont(czpos, 2);

TextDrawLetterSize(czpos, 0.360000, 1.100000);

TextDrawColor(czpos, -1);

TextDrawSetOutline(czpos, 1);

TextDrawSetProportional(czpos, 1);

bzpos = TextDrawCreate(61.000000, 155.000000, "0%");

TextDrawBackgroundColor(bzpos, 255);

TextDrawFont(bzpos, 2);

TextDrawLetterSize(bzpos, 0.360000, 1.100000);

TextDrawColor(bzpos, -1);

TextDrawSetOutline(bzpos, 1);

TextDrawSetProportional(bzpos, 1);

rwsn = TextDrawCreate(22.000000, 124.000000, "Riwal War Possesion");

TextDrawBackgroundColor(rwsn, 255);

TextDrawFont(rwsn, 0);

TextDrawLetterSize(rwsn, 0.330000, 1.200000);

TextDrawColor(rwsn, -1);

TextDrawSetOutline(rwsn, 1);

TextDrawSetProportional(rwsn, 1);

TextDrawUseBox(rwsn, 1);

TextDrawBoxColor(rwsn, 60);

TextDrawTextSize(rwsn, 174.000000, -1.000000);

srt = TextDrawCreate(22.000000, 140.000000, "Surenos:");

TextDrawBackgroundColor(srt, 255);

TextDrawFont(srt, 1);

TextDrawLetterSize(srt, 0.280000, 1.100000);

TextDrawColor(srt, -1660944641);

TextDrawSetOutline(srt, 1);

TextDrawSetProportional(srt, 1);

TextDrawUseBox(srt, 1);

TextDrawBoxColor(srt, 60);

TextDrawTextSize(srt, 174.000000, 4.000000);

nrt = TextDrawCreate(22.000000, 154.500000, "Nortenos:");

TextDrawBackgroundColor(nrt, 255);

TextDrawFont(nrt, 1);

TextDrawLetterSize(nrt, 0.280000, 1.100000);

TextDrawColor(nrt, -3669505);

TextDrawSetOutline(nrt, 1);

TextDrawSetProportional(nrt, 1);

TextDrawUseBox(nrt, 1);

TextDrawBoxColor(nrt, 60);

TextDrawTextSize(nrt, 174.000000, 4.000000);

presretsn = TextDrawCreate(22.000000, 169.000000, "Press RETURN to exit this message");

TextDrawBackgroundColor(presretsn, 255);

TextDrawFont(presretsn, 1);

TextDrawLetterSize(presretsn, 0.250000, 1.399999);

TextDrawColor(presretsn, -1);

TextDrawSetOutline(presretsn, 1);

TextDrawSetProportional(presretsn, 1);

TextDrawUseBox(presretsn, 1);

TextDrawBoxColor(presretsn, 60);

TextDrawTextSize(presretsn, 174.000000, 4.000000);

srnpos = TextDrawCreate(66.000000, 141.000000, "100%");

TextDrawBackgroundColor(srnpos, 255);

TextDrawFont(srnpos, 2);

TextDrawLetterSize(srnpos, 0.360000, 1.100000);

TextDrawColor(srnpos, -1);

TextDrawSetOutline(srnpos, 1);

TextDrawSetProportional(srnpos, 1);

nrtpos = TextDrawCreate(74.000000, 155.000000, "0%");

TextDrawBackgroundColor(nrtpos, 255);

TextDrawFont(nrtpos, 2);

TextDrawLetterSize(nrtpos, 0.360000, 1.100000);

TextDrawColor(nrtpos, -1);

TextDrawSetOutline(nrtpos, 1);

TextDrawSetProportional(nrtpos, 1);

for(new c=0;c<CAR_AMOUNT;c++)

{

Gas[c] = GasMax;

}

LoadProperty();

LoadBizz();

LoadSBizz();

LoadBoxer();

LoadStuff();

LoadIRC();

LoadFamilies();

LoadCK();

LoadTurfs();

LoadPapers();

ShowPlayerMarkers(2);

DisableInteriorEnterExits();

EnableStuntBonusForAll(0);

IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;

IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;

IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;

IRCInfo[9][iPlayers] = 0;

News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;

format(string, sizeof(string), "Nothing");

strmid(News[hAdd1], string, 0, strlen(string), 255);

strmid(News[hAdd2], string, 0, strlen(string), 255);

strmid(News[hAdd3], string, 0, strlen(string), 255);

strmid(News[hAdd4], string, 0, strlen(string), 255);

strmid(News[hAdd5], string, 0, strlen(string), 255);

format(string1, sizeof(string1), "No-one");

strmid(News[hContact1], string1, 0, strlen(string1), 255);

strmid(News[hContact2], string1, 0, strlen(string1), 255);

strmid(News[hContact3], string1, 0, strlen(string1), 255);

strmid(News[hContact4], string1, 0, strlen(string1), 255);

strmid(News[hContact5], string1, 0, strlen(string1), 255);

PlayerHaul[41][pCapasity] = 50;

PlayerHaul[42][pCapasity] = 50;

PlayerHaul[43][pCapasity] = 100;

PlayerHaul[44][pCapasity] = 100;

SetGameModeText("swaG RPG v0.3");

SendRconCommand("mapname Los Santos");

format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later");

format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out");

format(motd, sizeof(motd), "{FF5555}Server: {FFFFFF}Bun venit pe {31CFFF}swaG RPG {FFFFFF}!");

gettime(ghour, gminute, gsecond);

FixHour(ghour);

ghour = shifthour;

if(!realtime)

{

SetWorldTime(wtime);

}

SetTimer("ChangeWeather",1800000,true);

SetTimer("SistemDeIncendiere", 1500000,true);

SetPDistance(100);

AllowInteriorWeapons(1);

AllowAdminTeleport(1);

UsePlayerPedAnims();

for(new i = 0; i < sizeof(CreatedCars); i++)

{

    CreatedCars = 253;

}

[/pawn]

Si nu stiu unde sa pun SendRconCommand("loadfs carownership");

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

Pai daca pui deja in gm fs-ul nu mai trebuie sa pui sendrconcommand

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

adica sa copiez tot din FS in GM?si sa nu mai pun in server.cfg nimic la filterscripts?

Am pus tot din FS in Gm si nu se compileaza

[pawn]C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46722) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46723) : warning 201: redefinition of constant/macro (symbol "COLOR_GREY")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46724) : warning 201: redefinition of constant/macro (symbol "COLOR_WHITE")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46725) : warning 201: redefinition of constant/macro (symbol "COLOR_YELLOW")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46726) : warning 201: redefinition of constant/macro (symbol "COLOR_YELLOW2")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46727) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46971) : warning 201: redefinition of constant/macro (symbol "pInfo")

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(46976) : error 021: symbol already defined: "PlayerInfo"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47321) : error 021: symbol already defined: "strtok"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47340) : error 021: symbol already defined: "split"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47372) : error 021: symbol already defined: "OnPlayerKeyStateChange"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47407) : error 021: symbol already defined: "ProxDetectorS"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47478) : error 021: symbol already defined: "PlayerToPoint"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47647) : error 021: symbol already defined: "OnPropUpdate"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47708) : error 021: symbol already defined: "JB_OnDialogResponse"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(47940) : error 021: symbol already defined: "JB_OnPlayerEnterVehicle"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(48044) : error 021: symbol already defined: "JB_OnPlayerSpawn"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(48050) : error 021: symbol already defined: "JB_OnPlayerConnect"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(48062) : error 021: symbol already defined: "JB_OnPlayerCommandText"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(49115) : error 021: symbol already defined: "OnPlayerEnterCheckpoint"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(49220) : error 021: symbol already defined: "JB_OnPlayerStateChange"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(49261) : error 021: symbol already defined: "ini_GetKey"

C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(49270) : error 021: symbol already defined: "ini_GetValue"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

16 Errors.

[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

In gamemode ai deja callback-urile acelea. Tu trebuie sa te duci la fiecare callback din FS dai copy, te duci la callback-ul din gamemode si ii dai paste dupa prima {

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

nu stiu cum se face, nu reusesc.daca as reusi sa-l pun ca FS dar nu imi dau seama cum trebuie facut acolo OnGameModeInit ca nu am return 1; la urma si daca pun eu return 1; imi da la vehicles model: 0 ca imi da un warning la compilat

imi da acest warning

[pawn]C:\Users\Malossi\Desktop\swaG RPG v0.3\swaG RPG\gamemodes\Rp.pwn(11197) : warning 225: unreachable code[/pawn]

si linia aia e asta

[pawn]veh1 = CreateVehicle(527,870.2000100,-1669.3000500,13.3000000,0.0000000,2,2,15); //Cadrona[/pawn]

si eu am facut asa cu return

[pawn] for(new i = 0; i < sizeof(CreatedCars); i++)

{

    CreatedCars = 253;

}

SendRconCommand("loadfs carownership");

return 1;

//===============================================================================================//

//---Vehicule Coordonate---//

//===============================================================================================//

    veh1 = CreateVehicle(527,870.2000100,-1669.3000500,13.3000000,0.0000000,2,2,15); //Cadrona[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

am reusit sa fac acolo.dar acum am alta problema tot imi incurca masinile.eu am 173 de masini si in FS am pus 174.imi creeaza masina o cumpar dar cand inchid sv si il deschid din nou masina este creata dar imi incurca id cu alta masina.de exemplu se face masina cu id 174 si cand intru dupa ce inchid sv si il deschid din nou masina mea personala se muta pe cea cu id 173 si 174 o inlocuieste pe cea care avea inainte 173

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

Vezi sa nu ai vreo functie care adauga si alte vehicule cum ar fi AddCar. O metoda este aceea de a aduce vehiculele la tine pentru a vedea care este ultima.

Uite ce trebuie sa faci.

1.Sterge toate vehiculele personale.

2.Dai rr la server.

3.Intri pe server si folosesti comanda /getcar 174 pentru a vedea daca exista vehiculul.

4.Daca exista foloseste din nou comanda cu 175,176,177........

Sau alta metoda mai simpla:

1.Sterge toate vehiculele personale.

2.Dai rr la server.

3.Daca folosesti strcmp adauga asta

[pawn]if(strcmp(cmd, "/ultimul", true) == 0)

{

new string[256];

    for(new i=1;i<MAX_VEHICLES;i++)

{

if(!(IsValidVehicle(i)))

{

format(string, sizeof(string), "Ultimul vehicul este: %d",i-1);

SendClientMessage(playerid, 0xFFFFFFFF, string);

}

}

return 1;

}[/pawn]

sau daca folosesti zcmd.

[pawn]CMD:ultimul(playerid, params[])

{

        new string[256];

    for(new i=1;i<MAX_VEHICLES;i++)

{

if(!(IsValidVehicle(i)))

{

format(string, sizeof(string), "Ultimul vehicul este: %d",i-1);

SendClientMessage(playerid, 0xFFFFFFFF, string);

}

}

return 1;

}[/pawn]

Si vezi care este ultimul vehicul.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

173 e ultima masina cand dau /gotocar 174 ma da undeva langa o ferma si nu e nici-o masina

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

tot la fel face si nu stiu de ce.poate pe host nu mai face la fel nu pot sa-mi dau seama ce are.

masina 173 e o masina de la DMV cand dau /acreatecar si se creeaza masina 174 si dau rr la svse face masina aia de la DMV personala si cea care am creat-o se face cu id1 si cea care avea id1 se face id 173

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

Frate pune SendRconCommand("loadfs carownership"); la sfarsiul lui OnGameModeInit.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

am pus

cand dau /restart nu se incurca id-urile dar cand inchid samp-server si il deschid din nou atunci se incurca id-urile si de asta ma gandesc ca pe host poate nu se mai incurca

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

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.