Advertisements warning - help
#1

Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1511) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
command:
Код:
CMD:ad(playerid, params[])
{
    new string[128], PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    new item[ 66 ], Price, PH;
    if(sscanf(params, "s[65]dd",item, Price, PH)) return SendClientMessage(playerid, -1, "Usage: /ad [Item] [Price] [Phone Number]");
    format(string, sizeof(string), "Selling %s for %d$  (Phone Number: %d) %s", item, Price, PH, PlayerName);
    SendClientMessageToAll(-1,string);
    return 1;
}
Reply


Messages In This Thread
Advertisements warning - help - by FL3GM4 - 18.12.2012, 18:04
Re: Advertisements warning - help - by Mike_Peterson - 18.12.2012, 18:08
Re: Advertisements warning - help - by FL3GM4 - 18.12.2012, 18:13
Re: Advertisements warning - help - by Mike_Peterson - 18.12.2012, 18:16
Re: Advertisements warning - help - by FL3GM4 - 18.12.2012, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)