20.12.2018, 20:20
D:\server\gamemodes\ExtremeGame.pwn(53851) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(53851) : error 001: expected token: ";", but found "["
D:\server\gamemodes\ExtremeGame.pwn(53851) : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(53851) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(53851) : error 001: expected token: ";", but found "]"
D:\server\gamemodes\ExtremeGame.pwn(53851) : fatal error 107: too many error messages on one line
what is wrong?
D:\server\gamemodes\ExtremeGame.pwn(53851) : error 001: expected token: ";", but found "["
D:\server\gamemodes\ExtremeGame.pwn(53851) : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(53851) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(53851) : error 001: expected token: ";", but found "]"
D:\server\gamemodes\ExtremeGame.pwn(53851) : fatal error 107: too many error messages on one line
Код:
function loadApartments( ) { new id; serverApartments = cache_num_rows( ); for( new i, j = cache_get_row_count( ); i != j; i++ ) { id = cache_get_field_content_int(i, "ID"); apartmentsVariables[id][apUser] = cache_get_field_content_int(i,"UserID"); apartmentsVariables[id][apValue] = cache_get_field_content_int(i,"Value"); apartmentsVariables[id][apSell] = cache_get_field_content_int(i,"Sell"); apartmentsVariables[id][apPos][0] = cache_get_field_content_float(i,"X"); apartmentsVariables[id][apPos][1] = cache_get_field_content_float(i,"Y"); apartmentsVariables[id][apPos][2] = cache_get_field_content_float(i,"Z"); apartmentsVariables[id][apPos][3] = cache_get_field_content_float(i,"Angle"); cache_get_field_content(i, "Owner", apartmentsVariables[id][apOwner],SQL,130); apartmentsVariables[ id ][ apLabel ] = CreateDynamic3DTextLabel( "", -1, apartmentsVariables[ id ][ apPos ][ 0 ], apartmentsVariables[ id ][ apPos ][ 1 ], apartmentsVariables[ id ][ apPos ][ 2 ], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, -1, -1, 100.0 ); refresh_apartment_label( id ); }