18.03.2011, 21:45
pawn Код:
stock IsNotValidVehicle(model)
{
switch(model)
{
case 448,461,462,463,468,471,509,510,521,522,523,581,586,449; //5248
}
return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new model = GetVehicleModel(vehicleid);
if(!IsNotValidVehicle(model))
{
AddVehicleComponent(vehicleid, 1010);
}
return 1;
}
Код:
C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5248) : error 001: expected token: ":", but found ";" C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5248) : error 036: empty statement
Код:
C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5249) : error 029: invalid expression, assumed zero C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5249 -- 5250) : warning 215: expression has no effect C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5250) : error 001: expected token: ";", but found "return" C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5250) : warning 215: expression has no effect C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(5251) : warning 209: function "IsNotValidVehicle" should return a value