expression no effect
#1

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


Код:
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 );
	}
what is wrong?
Reply
#2

Are you sure this is setup correctly apartmentsVariables[id][apPos][0]?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)