16.06.2015, 10:35
PHP код:
public OnHousesLoad()
{
for(new i, j = cache_get_row_count(); i != j; ++i)
{
if (i >= sizeof HouseInfo) break;
HouseInfo[i][HouseID] = cache_get_field_content_int(i, "id");
HouseInfo[i][EntranceX] = cache_get_field_content_float(i, "EntranceX");
HouseInfo[i][EntranceY] = cache_get_field_content_float(i, "EntranceY");
HouseInfo[i][EntranceZ] = cache_get_field_content_float(i, "EntranceZ");
HouseInfo[i][ExitX] = cache_get_field_content_float(i, "ExitX");
HouseInfo[i][ExitY] = cache_get_field_content_float(i, "ExitY");
HouseInfo[i][ExitZ] = cache_get_field_content_float(i, "ExitZ");
HouseInfo[i][InsideInt] = cache_get_field_content_int(i, "InsideInt");
cache_get_field_content(i, "owner", HouseInfo[i][owner], 1, MAX_PLAYER_NAME);
HouseInfo[i][owned] = cache_get_field_content_int(i, "owned");
HouseInfo[i][HousePrice] = cache_get_field_content_int(i, "price");
cache_get_field_content(i, "text", HouseInfo[i][HouseText], 1, 200);
HouseLabel = Create3DTextLabel(HouseInfo[i][HouseText], COLOR_GREEN, HouseInfo[i][EntranceX], HouseInfo[i][EntranceY], HouseInfo[i][EntranceZ], 30, 0, 1);
HouseLoad = cache_get_row_count();
for(new x; x != HouseLoad; ++x)
}
return 1;
}
Код:
D:\samp037_svr_R1_win32\gamemodes\FM.pwn(880) : error 029: invalid expression, assumed zero D:\samp037_svr_R1_win32\gamemodes\FM.pwn(880 -- 881) : warning 215: expression has no effect D:\samp037_svr_R1_win32\gamemodes\FM.pwn(881) : error 001: expected token: ";", but found "return" D:\samp037_svr_R1_win32\gamemodes\FM.pwn(881) : warning 217: loose indentation D:\samp037_svr_R1_win32\gamemodes\FM.pwn(881) : error 079: inconsistent return types (array & non-array) D:\samp037_svr_R1_win32\gamemodes\FM.pwn(881) : fatal error 107: too many error messages on one line