SA:MP Pawno Warnings [Need Assistance]
#6

This is when you get indentation warnings:

pawn Код:
public MyCallback()
{
  SendClientMessage(playerid, -1, "...");
           printf("...");
Function();
      return 1;
}
If the lines doesn't start with the proper tab.

To fix it:

Option 1:
pawn Код:
//Add this to the top of the script:
#pragma tabsize 0
Option 2:
pawn Код:
//Get everything in correct tabs:
public MyCallback()
{
      SendClientMessage(playerid, -1, "...");
      printf("...");
      Function();
      return 1;
}
So, fix the tabs of your warning lines.

---

And to fix: "local variable "Some Name" shadows a variable at a preceding level

You have to rename "idcar" of the other part to "idcar2" in your case.

You better show us the part of code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)