29.09.2013, 09:45
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;
}