Jump to content

Question

Posted

C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(16932) : warning 217: loose indentation
C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(16953) : warning 217: loose indentation
C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(28083) : warning 219: local variable "idcar" shadows a variable at a preceding level

Cum as putea sa le rezolv?

vqqi6h.gif

6 answers to this question

Recommended Posts

Posted

C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(16932) : warning 217: loose indentation
C:\Documents and Settings\Dani\Desktop\Raven's Roleplay 1\gamemodes\larp.pwn(16953) : warning 217: loose indentation
[/quote]Liniile 16932 si 16953 nu sunt asezate corect.

Posteaza liniile.

www.youtube.com/thebwgg

Posted

dane linile

La ce aveti nevoie de linii?

pentru primele 2 warning-uri pune sus in gm

#pragma tabsize 0

si pentru a treia, variabila "idcar" este folosita de 2 sau de mai multe ori.

Posted

Aceleasi warning

[pawn]   else if(IsADrugHarvest(newcar))//---- Aceasta este linia.

{

if(PlayerInfo[playerid][pJob] == 19)

{

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "____________Ghid fermier de droguri____________");

    SendClientMessage(playerid, COLOR_WHITE, "** Fermier droguri ** /startdrugharvest, /stopdrugharvest sau /exit");

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________");

    TogglePlayerControllable(playerid, 0);

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  Nu ai cheile vehiculului !");

    RemovePlayerFromVehicle(playerid);

}

}[/pawn]

[pawn]else if(IsASmuggleCar(newcar))

{

    if(PlayerInfo[playerid][pJob] == 20)

    {

SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can smuggle drugs now !");

}

else//--------Si aceasta

  {

    SendClientMessage(playerid, COLOR_GREY, "  Nu ai cheile vehiculului !");

    RemovePlayerFromVehicle(playerid);

}

}[/pawn]

vqqi6h.gif
Posted

Aranjeaza liniile sa fie ca cele de mai sus..apesi TAB

De ex linia asta

else if(IsADrugHarvest(newcar))//

Sa fie la fel ca linia de mai sus care o ai cu

else if(.....

gXvsYS
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.