shape1
shape2
shape3
shape4
shape7
shape8

Система домов


Статус
Закрыто для дальнейших ответов.

Adarief

Новичок
Пользователь
05.03.2015
69
1
0
Что делать помогите? Вот строчки ошибок, а ниже сам код
Код:
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2088 -- 2090) : error 017: undefined symbol "Player"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2090) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2090) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2090) : fatal error 107: too many error messages on one line
Код:
{
if(newkeys & KEY_SPRINT)
{
for(new house = 1; house <= AllHouse; house++)
{
if(IsPlayerInRangeOfPoint(playerid,1.0,House[house][hvX],House[house][hvY],House[house][hvZ]) && GetPlayerVirtualWorld(playerid) == House[house][hvWorld])
{
if(!strcmp(House[house][hOwner],"Nones",false))
{
new str[255];
format(str,sizeof(str),"\
{ffffff}Продаётся дом\n\n\
Цена: %d руб (%s)\n\
Требуемый уровень: %d (%s)\n\
\n\
Если хотите купить нажмите \"Купить\"\n\
Если не хотите нажмите \"Закрыть\""
,House[house][hPrice],(GetPlayerMoney(playerid) < House[house][hPrice]?("Недостаточно"):("Достаточно"))    < ====================
,House[house][hLevel],(Player[playerid][pLevel] < House[house][hLevel]?("Недостаточный"):("Достаточный"))); < =================== Это те строчки
if(Player[playerid][pLevel] < House[house][hLevel] || GetPlayerMoney(playerid) < House[house][hPrice])
{
return ShowPlayerDialog(playerid, 20,0,"Продажа Владения",str,"Закрыть","");
}
else
{
SetPVarInt(playerid,"house_active",house);
return ShowPlayerDialog(playerid, 21,0,"Продажа Владения",str,"Купить","Закрыть");
}
}
else
{
new arend[32];
if(House[house][hRent] > 0) format(arend,32,"%d руб в час",House[house][hRent]);
else if(House[house][hRent] <= 0) format(arend,32,"Нет",House[house][hRent]);
new str[255];
format(str,sizeof(str),"\
{ffffff}Дом\n\n\
Владелец: %s\n\
Статус: %s\n\
Аренда: %s\n\
\n\
Если хотите войти нажмите \"Войти\"\n\
Если не хотите нажмите \"Закрыть\""
,House[house][hOwner]
,((House[house][hLock] == 0) ? ("Открыт"):("Закрыт")),
arend);
if(House[house][hLock] == 1)
{
return ShowPlayerDialog(playerid, 20,0,"Дом",str,"Закрыть","");
}
else
{
SetPVarInt(playerid,"house_active",house);
return ShowPlayerDialog(playerid, 22,0,"Дом",str,"Войти","Закрыть");
}
}
}
 
Последнее редактирование модератором:

Sten

Unknown
Пользователь
08.05.2014
830
77
0
У вас какой мод?Если геймер, то Player замените на PlayerInfo. Если другой, то ищите свои переменные и заменяйте.

 
Последнее редактирование модератором:

Adarief

Новичок
Пользователь
05.03.2015
69
1
0
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2093) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2098) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2120) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2125) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2134) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2138) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2142) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2144) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2147) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2147) : error 004: function "StartKarting" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2169) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2172) : warning 225: unreachable code
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2172) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2172) : error 004: function "KartingEnded" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2187) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2190) : warning 225: unreachable code
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2190) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2190) : error 004: function "DollahScoreUpdate" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2201) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2204) : warning 225: unreachable code
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2204) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2204) : error 004: function "Encrypt" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2206) : error 017: undefined symbol "string"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : error 017: undefined symbol "string"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : warning 215: expression has no effect
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : error 001: expected token: ";", but found "]"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : fatal error 107: too many error messages on one line


Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase




24 Errors.

Заменил стали эти ошибки, паблики убрал стали эти:


C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2093) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2098) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2120) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2125) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2134) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2138) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2142) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2144) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2147) : error 029: invalid expression, assumed zero
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2147) : error 004: function "Encrypt" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2149) : error 017: undefined symbol "string"
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2151) : error 017: undefined symbol "string"
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2151) : warning 215: expression has no effect
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2151) : error 001: expected token: ";", but found "]"
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2151) : error 029: invalid expression, assumed zero
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2151) : fatal error 107: too many error messages on one line


Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase




15 Errors.
Убрал тот паблик стали такие

Код:
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2093) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2098) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2120) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2125) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2134) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2138) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2142) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2144) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2148) : error 029: invalid expression, assumed zero
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2148) : error 017: undefined symbol "right"
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2151) : error 017: undefined symbol "source"
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2152) : error 017: undefined symbol "source"
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2153) : error 090: public functions may not return arrays (symbol "OnPlayerKeyStateChange")
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2156) : warning 225: unreachable code
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2156) : error 029: invalid expression, assumed zero
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2156) : error 004: function "Spectator" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2212) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2237) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2250) : error 029: invalid expression, assumed zero
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2250) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2252) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2255) : error 004: function "IsACopCar" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2258) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2260) : error 004: function "IsAnAmbulance" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2263) : error 004: function "SetPlayerCriminal" is not implemented
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2266) : error 079: inconsistent return types (array & non-array)
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2269) : warning 225: unreachable code
C:\Users\Сидоров\Desktop\Tyumen\gamemodes\111.pwn(2269) : error 029: invalid expression, assumed zero

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
 
 

Sten

Unknown
Пользователь
08.05.2014
830
77
0
Зачем паблики убирать?Я сказал только переменные изменить

 

Adarief

Новичок
Пользователь
05.03.2015
69
1
0
Зачем паблики убирать?Я сказал только переменные изменить
Код:
Переменные изменил высветилось это
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2093) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2098) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2120) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2125) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2134) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2138) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2142) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2144) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2147) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2147) : error 004: function "StartKarting" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2169) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2172) : warning 225: unreachable code
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2172) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2172) : error 004: function "KartingEnded" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2187) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2190) : warning 225: unreachable code
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2190) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2190) : error 004: function "DollahScoreUpdate" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2201) : error 079: inconsistent return types (array & non-array)
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2204) : warning 225: unreachable code
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2204) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2204) : error 004: function "Encrypt" is not implemented
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2206) : error 017: undefined symbol "string"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : error 017: undefined symbol "string"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : warning 215: expression has no effect
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : error 001: expected token: ";", but found "]"
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : error 029: invalid expression, assumed zero
C:\Users\Ñèäîðîâ\Desktop\Tyumen\gamemodes\111.pwn(2208) : fatal error 107: too many error messages on one line
 
Статус
Закрыто для дальнейших ответов.