How to fix this warning
#6

Fixed, I have another warning
Quote:

warning 219: local variable "playerid" shadows a variable at a preceding level

pawn Код:
CMD:fixmyvw(playerid, params[])
{
    new string[128], playerid; //Warn here.
    if(IsPlayerConnected(playerid))
    {
        GetPlayerPos(playerid, StopaniFloats[playerid][0], StopaniFloats[playerid][1], StopaniFloats[playerid][2]);
        SetTimerEx("StopaniTimer", 5000, 0, "d", playerid);
        SendClientMessage (playerid, COLOR_YELLOW, "Do not move for 5 seconds to have your VW Fixed!");
        {
        PlayerInfo[playerid][pVW] =  0;
        SetPlayerVirtualWorld(playerid,  0);
        format(string, sizeof(string), "You have fix your virtual world.");
        SendClientMessage(playerid, COLOR_GRAD2, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to fix this warning - by Jizz - 29.09.2013, 05:36
Re: How to fix this warning - by M0n3y - 29.09.2013, 07:39
Re: How to fix this warning - by iZN - 29.09.2013, 07:41
Re: How to fix this warning - by xganyx - 29.09.2013, 08:31
Re: How to fix this warning - by Patrick - 29.09.2013, 09:35
Re: How to fix this warning - by Jizz - 29.09.2013, 09:45
Re: How to fix this warning - by iZN - 29.09.2013, 09:47
Re: How to fix this warning - by xganyx - 29.09.2013, 12:22
Re: How to fix this warning - by Patrick - 29.09.2013, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)