13.04.2011, 12:19
Try putting new CarCheck = GetPlayerVehicleID(playerid); inside of your if statements(or in your functions) and not at the top... as such
tbh I haven't seen a script look for the vehicleid on the top... it probably keeps searching for the vehicleid throughout the whole script... but like I said it should work inside of the if statements
Код:
if(strcmp(cmd, "/whatever", true) == 0) { if(IsPlayerConnected(playerid)) { new CarCheck = GetPlayerVehicleID(playerid); if(IsAWhateverCar(CarCheck)) { then do whatever } } return 1; }