18.12.2012, 18:04
Код:
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.
Код:
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; }