Warning
#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


Messages In This Thread
Warning - by Trevor Gin - 28.02.2015, 17:35
Re: Warning - by BeesSi - 28.02.2015, 17:40
Re: Warning - by Trevor Gin - 28.02.2015, 17:41
Re: Warning - by BeesSi - 28.02.2015, 17:42
Re: Warning - by Trevor Gin - 28.02.2015, 17:45
Re: Warning - by BeesSi - 28.02.2015, 17:45
Re: Warning - by TakeiT - 28.02.2015, 17:46
Re: Warning - by Trevor Gin - 28.02.2015, 17:54
Re: Warning - by Arastair - 28.02.2015, 18:26
Re: Warning - by BeesSi - 28.02.2015, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)