22.06.2015, 19:38
Quote:
Hello!
You forgot the Float:-Tag. PHP Code:
- Mencent ![]() |
@topic
Sorry, but it was not that above code that was in error, is the code below that checks the id of the vehicle, and it checks where this really the vehicle, this is the code with the error:
PHP Code:
public PlayerPertoVeiculo(playerid)
{
static Float:Pos[3];
for( new i; i < MAX_VEHICLES; i++) {
GetVehiclePos(i, Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 7.0, Pos[0], Pos[1], Pos[2])) {
return 1;
}
}
return 0;
}