| Pustik | Дата: Суббота, 12.02.2011, 17:45 | Сообщение # 17 |
|
Группа:
I'm V.I.P.
Сообщений: 1669
Награды: 129
Город: Кривой Рог
Репутация: 939
Замечания: 60%
Статус: 
| Code if(strcmp(cmd, "/househeal", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); GetPlayerName(playerid, sendername, sizeof(sendername)); new location = PlayerInfo[playerid][pLocal]; if(!strlen(tmp)) { if(location != 255) { if(location < 99) { if(HouseInfo[location][hArm] == 1 && IsACop(playerid)) { SetPlayerArmour(playerid,100.0); format(string, sizeof(string), "* %s надевает бронежилет.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,0,0); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } else { format(string, sizeof(string), "В этом доме нет модернизаций брони!"); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } if(HouseInfo[location][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "Вы были излечены к 100 здоровью."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"Вы уже излечены к 100-HP!"); } } else { format(string, sizeof(string), "У этого дома нету модернизаций аптечки!"); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } return 1; } else if(PlayerInfo[playerid][pPhousekey] == location) { if(HouseInfo[location][hArm] == 1 && IsACop(playerid)) { SetPlayerArmour(playerid,100.0); format(string, sizeof(string), "* %s надевает бронежилет.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,0,0); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } else { format(string, sizeof(string), "В этом доме нет модернизаций брони!"); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } if(HouseInfo[location][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "Вы были излечены к 100 здоровью."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"Вы уже излечены к 100-HP!"); } } else { format(string, sizeof(string), "У этого дома нету модернизаций аптечки!"); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } return 1; } else if(location == 101)//Restaurant { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "Вы были излечены до 100 здоровья."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"Вы уже излечены к 100-HP!"); } } else if(location == 102 && IsACop(playerid))//Police Armoury { SetPlayerHealth(playerid,100.0); format(string, sizeof(string), "* %s надевает бронежилет.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,0,0); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; SetPlayerArmour(playerid,100.0); } }
return 1; } На будут эроры,варнинги пиши в этой теме помогу...Пользуйся на здоровье
|
| |
|
|
| BMaker | Дата: Воскресенье, 13.02.2011, 09:47 | Сообщение # 18 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 208
Награды: 1
Город: Saint-P
Репутация: 16
Замечания: 0%
Статус: 
| Спасиибоо) [off]20 символов[/off]Добавлено (13.02.2011, 09:47) ---------------------------------------------
Code H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(2692) : error 017: undefined symbol "PlayerMuteMessage" H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(2952) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(2956) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3014) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3018) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3022) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3026) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3030) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3034) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3038) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3042) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3054) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3058) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3062) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3066) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3070) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3082) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3086) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3090) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3103) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3107) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3111) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3124) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3129) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3134) : error 004: function "PlayerToPoint" is not implemented H:\4serv\modes\gm-samp-bg\gamemodes\GM.pwn(3139) : error 004: function "PlayerToPoint" is not implemented Как я понял, где в твоём коде скобочки не хватает
|
| |
|
|