Antonio_McWade
Новичок
C:\Users\Desktop\Fast Role Play1\gamemodes\FRP.pwn(16857) : warning 219: local variable "playername" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Сам код в котором ошибка:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Сам код в котором ошибка:
Код:
else if(strcmp(cmd, "/hmenu", true) == 0 || strcmp(cmd, "/hm", true) == 0){
new bouse = PlayerInfo[playerid][pPhousekey];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if (bouse != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0){
if (PlayerToPoint(10, playerid,HouseInfo[bouse][hExitx], HouseInfo[bouse][hExity], HouseInfo[bouse][hExitz])){
format(string, sizeof(string), "- Открыть/Закрыть\nПродать дом\nДом.Счет\n Аптечки[%d]", HouseInfo[bouse][hTakings], HouseInfo[bouse][hHel]);
ShowPlayerDialog(playerid, 5300, DIALOG_STYLE_LIST, "Информация о доме", "Выбрать");
return true;}
else{
SendClientMessage(playerid, COLOR_GREY, "Вы не в доме");
return true;}
}
else{
SendClientMessage(playerid, COLOR_GREY, "У вас нет дома");
return true;}
}
Последнее редактирование:
