Posts: 734
Threads: 8
Joined: Jun 2009
Quote:
Originally Posted by Breto
Well... I've found that ALL the codes under OnPlayerStateChange doesn't work at all - Tried to find the problem but i failed :S
So.. Here it is..
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new string[128]; if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) { new newcar = GetPlayerVehicleID(playerid); if(GetVehicleModel(newcar) != 509 && GetVehicleModel(newcar) != 481) // BMX & Bike { RadioChoose(playerid, Radio[newcar]); } -> return 1; } if(oldstate == PLAYER_STATE_DRIVER) { new model = GetVehicleModel(gLastCar[playerid]); if(IsACopCar(gLastCar[playerid]) || model == 457) { SetPlayerWeapons(playerid); } }
[...] return 1; }
|
Can you spot what's wrong? You're returning 1 before hand, thus the code ends there.