expression no effect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: expression no effect (
/showthread.php?tid=661985)
expression no effect -
enzulikeS - 20.12.2018
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?
Re: expression no effect -
Tickle - 21.12.2018
Are you sure this is setup correctly apartmentsVariables[id][apPos][0]?