Warning
#1

<REMOVED>
Reply
#2

Use #pragma tabsize 0 , if i helped +rep..
Reply
#3

<REMOVED>
Reply
#4

Please paste your code here so i can fix the identation
Reply
#5

<REMOVED>
Reply
#6

Edited - Wont work with
Will paste it to pastebin , standby.
Reply
#7

Quote:
Originally Posted by Besar
Посмотреть сообщение
Use #pragma tabsize 0 , if i helped +rep..
You're not supposed to use that, I think its even against the forum rules, as is begging for reputation.

As you may (or may not) know, in any coding language, everything has to be properly indented. For example, like this
pawn Код:
myfunction()
{
    //notice how
    //these messages
    //are perfectly aligned
      //and this one isnt
}
Somewhere (In the include, near the lines of that warning) you have one line that is spaced differently, as is the "And this one isnt" line, above
Reply
#8

<REMOVED>
Reply
#9

Btw Warnings don't have much effect on the script I mean it will work even if you get 10 warnings
Reply
#10

pawn Код:
CMD:skiptut(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 2)
    {
        new giveplayerid;
        if(sscanf(params, "ui", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /skiptut [player]");

        if(IsPlayerConnected(giveplayerid))
        {
            if(TutStep[giveplayerid] > 0)
            {
                ClearChatbox(giveplayerid); HideTutGUIBox(giveplayerid); HideTutGUIFrame(giveplayerid, 23);
                PlayerInfo[giveplayerid][pTut] = 24;
                gOoc[giveplayerid] = 0;
                gNews[giveplayerid] = 0;
                gFam[giveplayerid] = 0;
                TutStep[giveplayerid] = 24;
                SetPlayerVirtualWorld(giveplayerid, 0);
                SendClientMessageEx(giveplayerid, COLOR_WHITE, "You have been forced out of the tut by an admin.");
                TogglePlayerControllable(giveplayerid, 1);
             }
             else SendClientMessageEx(playerid, COLOR_GRAD2, "That player is not in the tutorial!");
        }
    }
    else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    return 1;
}
This would fix your string warning.. As Ralfie said, a string is not used and that's the reason why the warning is .. To warn you about it .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)