02.03.2019, 19:26
Hey!
I got a problem with anti-fall on bike problem..
I got all the ID's of bikes in new array
Then I got
But for some reason if I put for example "522" which is NRG model id instead of "sizeof(Bikes)" it works.
I got a problem with anti-fall on bike problem..
I got all the ID's of bikes in new array
PHP код:
new Bikes[12] = //Bikes ID's
{
448, 461, 462, 463, 468, 481, 509, 510,
521, 522, 581, 586
};
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
if(GetVehicleModel(pVeh[playerid]) == sizeof(Bikes)) return PutPlayerInVehicle(playerid, pVeh[playerid], 0);
return 1;
}