26.06.2012, 10:57
Hi guys,
I have a really big headache with this shit, please, help someone. Why does GetPlayerPos returns 0.0, 0.0, 0.0? What the hell?
Thanks.
I have a really big headache with this shit, please, help someone. Why does GetPlayerPos returns 0.0, 0.0, 0.0? What the hell?
pawn Код:
new
Float:zPos[ 3 ]
;
for( new i; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) || !IsPlayerNPC( i ) || !IsPlayerInAnyVehicle( i ) ) continue;
print( "5" );
GetPlayerPos( i, zPos[ 0 ], zPos[ 1 ], zPos[ 2 ] );
printf( "6: %f, %f, %f", zPos[ 0 ], zPos[ 1 ], zPos[ 2 ] );
}